多线程 Java.util.ConcurrentModificationException异常 Iterator<Entry<String,Boolean>> iter = set.iterator(); while(iter.hasNext()){ Entry<String,Boolean> entry = iter.next(); String key = entry.getKey(); } 这里的next会抛出Java.util.ConcurrentModificationException。 在网上很多人都说,用了romove办法,这里,我没调用过remove。原因没明。 chaunceyhao