#1: ConcurrentModificationException Getting a ConcurrentModificationException when trying to modify (i.e. adding or removing an item) a collection while iterating. The following code throws a ConcurrentModificationException. To avoid ConcurrentModificationException in a single-threaded environment, you can remove the object that you are working on with the iterator. … Read more ›...