ArrayList迭代修改抛出ConcurrentModificationException

extends:http://www.cnblogs.com/dolphin0520/p/3933551.html
                Iterator<Integer> iterator = list.iterator();
                while(iterator.hasNext()){
                    Integer integer = iterator.next();
                    if(integer==2)
                        iterator.remove(); 
                }
 
原文地址:https://www.cnblogs.com/niray/p/5153551.html