public T grow ( ) { if ( size < data . length ) { return data [ size ++ ] ; } else { growArray ( ( data . length + 1 ) * 2 ) ; return data [ size ++ ] ; } }
Returns a new element of data . If there are new data elements available then array will automatically grow .