Friday, March 13, 2009

ConcurrentModificationException

For example, it is not generally permssible for one thread to modify a Collection while another thread is iterating over it.

for(Personel personel : personelList){
if(!personel.getSelected()){
personelList.remove(personel);
}else{
personel.setParent(parent);
}
}

sun

No comments: