public class StringCharIterator extends CharIterator
Constructor | Description |
---|---|
StringCharIterator(java.lang.String s) |
Constructor
|
Modifier and Type | Method | 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 class CharIterator
public char nextChar() throws java.util.NoSuchElementException
nextChar
in class CharIterator
java.util.NoSuchElementException
- if past the first characterCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.