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, replaceChar
public StringCharIterator(java.lang.String s)
c
- the character that this iterator should iterate.public boolean hasNext()
CharIterator
hasNext
in interface java.util.Iterator
hasNext
in class CharIterator
public char nextChar() throws java.util.NoSuchElementException
nextChar
in class CharIterator
java.util.NoSuchElementException
- if past the first characterCopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.