java.util.ListIterator .
This iterator allows both forward and reverse iteration through the container.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the iterator has a previous elementChecks to see if there is a previous element that can be iterated to. |
| public E | Returns: the previous element in the iterationGets the previous element from the container. |
| hasPrevious | back to summary |
|---|---|
| public boolean hasPrevious() Checks to see if there is a previous element that can be iterated to.
| |
| previous | back to summary |
|---|---|
| public E previous() Gets the previous element from the container.
| |