I would like to remove an object from an ArrayList when I\'m done with it, but I can\'t find way to do it. Trying to remove it like in the sample code below doe
ArrayList
you need to create and access the iterator explicitly
Iterator it = pixel.iterator(); while(it.hasNext()){ Pixel.px = it.next(); //... it.remove(); }