private void growIfNeeded(){
  if (size == values.length) {
    int[] newv=new int[size * 3 / 2 + 10];
    System.arraycopy(values,0,newv,0,size);
    values=newv;
  }
}

private void growIfNeeded ( ) { if ( size == values . length ) { int [ ] newv = new int [ size * 3 / 2 + 10 ] ; System . arraycopy ( values , 0 , newv , 0 , size ) ; values = newv ; } }
increases size of array if needed
