public T get ( int index ) { if ( index >= size ) throw new IllegalArgumentException ( "Index out of bounds: index " + index + " size " + size ) ; return data [ index ] ; }
Returns the element at the specified index . Bounds checking is performed .