How to avoid "Exception in thread "main" java.util.ConcurrentModificationException" error in Java
Iterating through a Collection, avoiding ConcurrentModificationException when removing objects in a loop