[jdom-interest] ConcurrentModificationException - why?

Bradley S. Huffman hip at a.cs.okstate.edu
Fri Dec 13 14:10:08 PST 2002


"Robert Koberg" writes:

> private void removeColumns(Element elem) {
>   List cols = elem.getChildren("col");
>   for (Iterator i = cols.iterator(); i.hasNext();) {
>     Element col = (Element)i.next();
>     elem.removeContent(col);

     ^^^^^^^^^^^^^^^^^^^^^^^^^ here
     Try i.remove();
     
Brad



More information about the jdom-interest mailing list