public interface Iterator
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns
true if the iteration has more elements. |
java.lang.Object |
next()
Returns the next element in the iteration.
|
void |
remove()
Removes from the underlying data structure the last element returned by the iterator (optional
operation).
|
boolean hasNext()
true if the iteration has more elements.true if the iterator has more elements.java.lang.Object next()
void remove()