[这篇博文,多亏cnblogs的管理员GG帮忙恢复,才得以重见天日,特在此拜谢!]在使用set/map时,一个可爱的小bug:java.util.ConcurrentModificationException【错误场景1】:set容器,边遍历,边add/remove元素Set<String> set = new HashSet<String>();for (int i = 0; i < 10000; i++) { set.add(Integer.toString(i));}for (String str : set) { //或使用iterator来循环,JDK5 Read More
posted @ 2012-04-23 09:35 技术草根女 Views(7555) Comments(0) Diggs(0) Edit