public void setCharacterAt(int index, int ch) { if (index < 0 || index >= size()) throw new IndexOutOfBoundsException(); ((CharSeq) base).setCharacterAt(start + index, ch); }