I need to delete some objects from a list if they meet a condition.
But I am getting java.util.ConcurrentModificationException.
Here is my code:
collegeList.addAll(CollegeManager.findByCollegeID(stateCode, districtCode));
for(College clg:collegeList){
    if(!clg.approve()){
        collegeList.remove(clg);
    }
}
 
     
     
    