Type Reason Java.Lang.UnsupportedOperationException if removing is not supported by the collection being iterated. Java.Lang.IllegalStateException if next has not been called, or remove has already been called after the last call to next.
Removes the last object returned by next from the collection. This method can only be called once between each call to next.