public int[] array(int[] array){
  if (array == null || array.length != count) {
    array=new int[count];
  }
  System.arraycopy(data,0,array,0,count);
  return array;
}

public int [ ] array ( int [ ] array ) { if ( array == null || array . length != count ) { array = new int [ count ] ; } System . arraycopy ( data , 0 , array , 0 , count ) ; return array ; }
copy as many values as possible into the specified array .
