SyntaxFix
Write A Post
Hire A Developer
Questions
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.