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.
- How is that even possible?!
- What does it mean?
- How can I fix it?
ConcurrentModificationExceptioncan be caused by the same thread manipulating a collection while iterating over itIterator.remove()orListIterator.add()methods