public static <T>T[] copyFrom(T[] array){
  return Arrays.copyOf(array,array.length);
}

public static < T > T [ ] copyFrom ( T [ ] array ) { return Arrays . copyOf ( array , array . length ) ; }
creates a copy of given array , and of type t [ ] .
