How to modify a Collection while iterating using for-each loop without ConcurrentModificationException?
Iterating through a Collection, avoiding ConcurrentModificationException when removing objects in a loop