private static void throwBounds(){
  throw new IndexOutOfBoundsException("attempt to write past the end");
}

private static void throwBounds ( ) { throw new IndexOutOfBoundsException ( "attempt to write past the end" ) ; }
throws the excpetion for when an attempt is made to write past the end of the instance .
