public class StringCharIterator extends CharIterator
Constructor and Description |
---|
StringCharIterator(String s)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
char |
nextChar() |
clone, next, remove, replaceChar
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public StringCharIterator(String s)
s
- the character that this iterator should iterate.public boolean hasNext()
CharIterator
hasNext
in interface Iterator
hasNext
in class CharIterator
public char nextChar() throws NoSuchElementException
nextChar
in class CharIterator
NoSuchElementException
- if past the first characterCopyright © 2025 Apache Software Foundation. All rights reserved.