条件を満たした場合、リストからいくつかのオブジェクトを削除する必要があります。
しかし、私は得てjava.util.ConcurrentModificationException
います。
これが私のコードです:
collegeList.addAll(CollegeManager.findByCollegeID(stateCode, districtCode));
for(College clg:collegeList){
if(!clg.approve()){
collegeList.remove(clg);
}
}