摘要:
Exception in thread "main" java.util.ConcurrentModificationException 并发修改异常引发的思考! ①list遍历删除元素时会报错,比如下面删除字符串"aa",也有遍历不报错的例子,看下面的例子 public class TestMai 阅读全文
摘要:
public static void main(String[] args) { Set set = new HashSet(); Test t1 = new Test("aaa"); Test t2 = new Test("aaa"); set.add(t1); set.add(t2); System.out.println(set.size()); //我们对于... 阅读全文