为什么list的size只有一个的时候,无法执行for循环,不然会报这个错误(Unable to evaluate the expression Method threw 'java.util.ConcurrentModificationException' exception.)解决方法在下面

“ConcurrentModificationException是基于java集合中的快速失败(fail-fast)机制产生的,在使用迭代器遍历一个集合对象时,如果遍历过程中对集合对象的内容进行了增删改,就会抛出该异常。”
https://blog.csdn.net/qq_51741039/article/details/126008727