public AtomicReferenceArray(E[] array){
  this.array=Arrays.copyOf(array,array.length,Object[].class);
}

public AtomicReferenceArray ( E [ ] array ) { this . array = Arrays . copyOf ( array , array . length , Object [ ] . class ) ; }
creates a new atomicreferencearray with the same length as , and all elements copied from , the given array .
