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, replaceCharequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic StringCharIterator(String s)
s - the character that this iterator should iterate.public boolean hasNext()
CharIteratorhasNext in interface IteratorhasNext in class CharIteratorpublic char nextChar()
throws NoSuchElementException
nextChar in class CharIteratorNoSuchElementException - if past the first characterCopyright © 2023 Apache Software Foundation. All rights reserved.