首页 > 编程语言 >为什么list的size只有一个的时候,无法执行for循环,不然会报这个错误(Unable to evaluate the expression Method threw 'java.uti

为什么list的size只有一个的时候,无法执行for循环,不然会报这个错误(Unable to evaluate the expression Method threw 'java.uti

时间:2023-01-11 19:34:35浏览次数:56  
标签:java ConcurrentModificationException Unable size Method threw

 

 

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

https://blog.csdn.net/qq_51741039/article/details/126008727

 

标签:java,ConcurrentModificationException,Unable,size,Method,threw
From: https://www.cnblogs.com/rapper-start/p/17044713.html

相关文章