在运行下面这段代码时出现了并发修改异常java.util.ConcurrentModification: public static void main(String[] args) { List l = new ArrayList(); l.add(100); l.add(200); l.add(300); Iterator it = l.iterator(); while (it.hasNext()){ int num = (int)it.next(); if (num == 200){ l…