public IntArrayList set ( int index , int val ) { if ( index < 0 || index >= size ) { throw new IndexOutOfBoundsException ( String . valueOf ( index ) ) ; } data [ index ] = val ; return this ; }
Replaces the value at the specified position in this list with the specified value .