Thursday, April 28, 2011

ConcurrentModificationException in java Iterator

When a object is accessed by Iterator,

add/remove operation should be done by Iterator, not accessed directly.