for循环中使用remove(),报java.util.ConcurrentModificationException: null
报错内容报错代码如下:for(MaprelatedMap:relatedAll){LonguserId=Long.valueOf(relatedMap.get("userId").toString());for(LongplanUserId:planUserIds){if(userId.equals(planUserId)){relatedAll.remove(relatedMap);}}}报错截