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 20:11

>>37
Also, an array in C *cannot* be expanded using realloc(). Holy cripes, please shut up and read a book.

I think you took his statement more literal then it was meant to be taken. You have a bad day at work like you seem to always do? Enterprise java getting you your head after all these years ?

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