Results 1 to 2 of 2
Thread: concurrent modification
- 11-06-2011, 02:02 PM #1
Member
- Join Date
- Aug 2011
- Posts
- 60
- Rep Power
- 0
concurrent modification
i want to know how to iterate a collection and make modification on it without having the exception of "concurrent modification"
Please help meJava Code:public void créer_noeud(String name,String parent,Element noeud,String pari) { . . . List inds=noeud.getChildren(); ListIterator ind=inds.listIterator(); while(ind.hasNext()) { Element ele=(Element) ind.next(); String par=ele.getName(); if(par.equals("X")) System.out.println("X"); else créer_noeud(name, parent,ele,pari); } }
- 11-06-2011, 02:59 PM #2
Similar Threads
-
JTable entry modification
By lemontree45 in forum New To JavaReplies: 1Last Post: 09-19-2011, 05:17 PM -
Modification in XML file
By anurag_1226 in forum Java SoftwareReplies: 1Last Post: 04-10-2010, 06:53 PM -
n00b: jTable gui modification
By ankitmcgill in forum New To JavaReplies: 1Last Post: 03-15-2009, 06:34 PM -
help with concurrent modification exception
By jdgallag in forum New To JavaReplies: 1Last Post: 11-30-2008, 09:19 PM -
Inventory Program modification help
By badness in forum Java AppletsReplies: 1Last Post: 01-17-2008, 05:24 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks