Index shift on remove: After removing index i, the element that was at index i+1 is now at index i.
How to apply it: Compensate for shifts by using i-- after remove(i) in a forward loop.
Course: AP Computer Science A · Unit: ArrayList
Practice questions about Index shift on remove on AimFive — get rubric-based feedback showing exactly which points you earned.
AP and Advanced Placement are trademarks of College Board. AimFive is not affiliated with or endorsed by College Board.