java遍历List出现java.util.ConcurrentModificationException,我没有remove

丁佳明2022-10-11  8

Java。util。当Java遍历列表时会发生concurrentmodificationexception,但是Java。util。当我在不移除Java的情况下遍历列表时,会发生concurrentmodificationexception。我没有关于remove的介绍:疼,我在遍历列表中的数据,没有地方调用remove方法,只是调用get方法。这个错误出来,很纠结。 请教大神为什么?解决方案:是否同时遍历了多个线程? lt/br gt;我有一个基类,然后10个类继承它,然后
转载请注明原文地址:https://juke.outofmemory.cn/read/2012006.html

最新回复(0)