java map failed_遍历map出现错误java.util.ConcurrentModificationException
一、遍历map的四种方式:1、使用迭代器:Map map = new HashMap();map.put("name","xiaoming");map.put("age","20");map.put("sex","male");Iterator> iterator = map.entrySet().iterator();while(iterator.hasNext