void copyTo(IntSet target){
  if (target.elements.length < size) {
    target.elements=Arrays.copyOf(elements,elements.length);
  }
 else {
    System.arraycopy(elements,0,target.elements,0,size);
  }
  target.size=size;
}

void copyTo ( IntSet target ) { if ( target . elements . length < size ) { target . elements = Arrays . copyOf ( elements , elements . length ) ; } else { System . arraycopy ( elements , 0 , target . elements , 0 , size ) ; } target . size = size ; }
copies the contents of this set to the target set .
