Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Need Java Help Java, Arraylist and removal

Name: Anonymous 2012-01-18 1:38

Every time I try to call ArrayList.remove() on an element while in a for each loop, Java throws a ConcurrentModificationException.  I need to remove an element in a for loop because in there is where I look through the objects to find objects which meet the criteria for removal.

Name: Anonymous 2012-01-18 11:34

>>13
>>14
Actually I'm not a Java programmer, just an embedded systems designer who  makes more than you ever will.  The only reason I'm using java is because my friend asked me to help him write a game engine for android.  I don't even code as a profession anymore, I design... I leave the coding to the slaves and only code when they fuck up big time.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List