Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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