Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i am getting ConCurrentModificationException

 
mk yadav
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am getting ConCurrentModificationException here..

for(Part part:list){
if(part.getId()>=lower && part.getId()<=upper){
list.add(part);
}
}

how to resolve it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic