| java.util.Iterator |
| boolean | hasNext() | ||||
| Answers if there are more elements to iterate. | |||||
| E | next() | ||||
| Answers the next object in the iteration. | |||||
| void | remove() | ||||
Removes the last object returned by next from the
collection. |
|||||
| NoSuchElementException | when there are no more elements |
|---|
next from the
collection.
| UnsupportedOperationException | when removing is not supported by the collection being iterated |
|---|---|
| IllegalStateException | when next has not been called, or
remove has already been called after the
last call to next
|