I need to delete some objects from an ArrayList if they meet a condition and I\'m wondering which way could be more efficient.
ArrayList
Here\'s the situation: I
You could iterate backwards and remove as you go through the ArrayList. This has the advantage of subsequent elements not needing to shift and is easier to program than moving forwards.