在对map的keyset进行迭代遍历的过程中如果修改了map,此时jdk说了,“the results of the iteration are undefined.”。如果不是用迭代器进行遍历呢? 在对map的keyset进行迭代遍历的过程中如果修改了map,此时jdk说了,“the
在对map的keyset进行迭代遍历的过程中如果修改了map,此时jdk说了,“the results of the iteration are undefined.”。如果不是用迭代器进行遍历呢? 在对map的keyset进行迭代遍历的过程中如果修改了map,此时jdk说了,“the