list集合遍历删除数据,并发修改异常;
for (int i=0;i<messagesByCondition.size();i++) { if("发件箱删除".equals(messagesByCondition.get(i).getRemark1())){ messagesByCondition.remove(i); i--;记得一点删除后要-- }