public interface StringIterator extends Iterator<String>
| Modifier and Type | Method and Description |
|---|---|
String |
current()
Return same value as last call to
next(). |
void |
reset()
Reset the iterator to the initial position.
|
forEachRemaining, hasNext, next, removevoid reset()
Can be used to restart iterator that returns false when hasNext() is called.
String current()
next().
Behavior is not defined if method is called before next()next().Copyright © 2022. All rights reserved.