This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Other Java Products and Servers and the fly likes i am getting ConCurrentModificationException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "i am getting ConCurrentModificationException" Watch "i am getting ConCurrentModificationException" New topic
Author

i am getting ConCurrentModificationException

mk yadav
Greenhorn

Joined: Dec 04, 2012
Posts: 5
i am getting ConCurrentModificationException here..

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

how to resolve it.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: i am getting ConCurrentModificationException