public V set ( int index , V value ) throws IndexOutOfBoundsException { // Check if the index does not already exist if ( index >= data . size ( ) ) { throw new IndexOutOfBoundsException ( ) ; } return data . set ( index , value ) ; }
Inserts the element at the specified index . This only works if this index already exists .