/** * An interface for iterators over the chars in a * string. It is expected that implementers will have a * constructor that takes a string parameter--the string * over which to iterate. */ public interface CharIterX { /** * Get the next char in the string. * @return the next char * @throws IteratorExhausted if there is no next char */ public char next() throws IteratorExhausted; }