I get a ConcurrentModificationException
even though I made all the methods of the whole program synchronized (including static methods and the main
method).
I don't have hidden iterators.
ConcurrentModificationException
can be caused by the same thread manipulating a collection while iterating over itIterator.remove()
or ListIterator.add()
methods