Code example for CharacterIterator

Methods: getEndIndexlastnext

0
    return iter;
  } 
 
  public int last () 
  { 
    iter.last();
    // Go past the last character. 
    iter.next();
    return iter.getEndIndex();
  } 
 
  public int next (int n)
  { 
    int r = iter.getIndex ();
    if (n > 0)
      { 
        while (n > 0 && r != DONE)
          { 
            r = next ();
            --n;
Stop searching for code, let great code find you!  Add Codota to your java IDE