这个异常是在遍历 list的时候,对list进行删除操作导致的.  一般是for each循环遍历

 

解决方法:改为传统的for循环遍历方式

 

for (int i = 0; i < list.size(); i++) {
if (list.get(i).getSecond() <=0) {
list.remove(i);
}
}




需要 了解源码的同学请移步:https://www.cnblogs.com/dolphin0520/p/3933551.html

相关文章:

  • 2022-02-02
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
猜你喜欢
  • 2021-05-20
  • 2022-12-23
  • 2021-11-20
  • 2021-07-29
  • 2021-07-29
  • 2021-07-01
相关资源
相似解决方案