throw new IllegalArgumentException();
throw new IllegalArgumentException("position: " + position + ", beginIndex: " + getBeginIndex() + ", endIndex: " + getEndIndex());
    public char setIndex(int position)    {    if (position < getBeginIndex()	|| position > getEndIndex())      throw new IllegalArgumentException();    current = position;    if (position == getEndIndex())      return DONE;        return array[current];    }