| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if there is another element, false otherwiseDetermine if there is another element in this sequence. |
| public int | |
| public int | Returns: the next elementObserve the next element in the sequence without moving the iterator. |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Determine if there is another element in this sequence.
| |
| next | back to summary |
|---|---|
| public int next() throws NoSuchElementException Get the next element in the sequence.
| |
| peekNext | back to summary |
|---|---|
| public int peekNext() throws NoSuchElementException Observe the next element in the sequence without moving the iterator.
| |