public void set ( final int i , final int [ ] e ) { if ( i >= list . length ) list = Array . copyOf ( list , newSize ( i + 1 ) ) ; list [ i ] = e ; size = Math . max ( size , i + 1 ) ; }
Sets an element at the specified index .