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 23:26

>>39

error checking is bloat when errors should never happen, and errors should never happen, but sometimes they do, and if there is checking, then you are less fucked than if errors were checked, but you are stilled fucked, but the fucking up only prevents the functioning of your program, rather than causing it to do something completely arbitrary, or intentional from a hacker who has learned how to exploit the error, so sometimes it is worth it to have the error checking, but if the application is proved correct and if speed is needed, then error checking can get in teh way of getting adequate speed.

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