public LongArray(LongArray array){
  this.ordered=array.ordered;
  size=array.size;
  items=new long[size];
  System.arraycopy(array.items,0,items,0,size);
}

public LongArray ( LongArray array ) { this . ordered = array . ordered ; size = array . size ; items = new long [ size ] ; System . arraycopy ( array . items , 0 , items , 0 , size ) ; }
creates a new array containing the elements in the specific array . the new array will be ordered if the specific array is ordered . the capacity is set to the number of elements , so any subsequent elements added will cause the backing array to be grown .
