public class StringCharIterator extends CharIterator
| Constructor and Description |
|---|
StringCharIterator(java.lang.String s)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
char |
nextChar() |
clone, next, remove, replaceCharpublic StringCharIterator(java.lang.String s)
s - the character that this iterator should iterate.public boolean hasNext()
CharIteratorhasNext in interface java.util.IteratorhasNext in class CharIteratorpublic char nextChar()
throws java.util.NoSuchElementException
nextChar in class CharIteratorjava.util.NoSuchElementException - if past the first characterCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.