摘要: list set 遍历过程中添加或者删除元素,报异常。 使用iterator 也会报异常 ConcurrentModificationException remove只能用迭代器的remove,而不能用集合的remove方法,iterator的remove会维护索引的一致性 iterator it 阅读全文
posted @ 2017-08-10 22:36 上台阶 阅读(691) 评论(0) 推荐(0) 编辑