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, replaceCharpublic 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 © 2019 Apache Software Foundation. All rights reserved.