How to modify objects in a collection at the same time while iterating through the collection in java
Iterating through a Collection, avoiding ConcurrentModificationException when removing objects in a loop