private IndexOutOfBoundsException outOfRange(int index) {
    return new IndexOutOfBoundsException("Index out of range: " + index+"; length: "+length());
  }
private IndexOutOfBoundsException outOfRange(int index)