public static Object clone(Object array){
  Class<?> componentType=getComponentType(array.getClass());
  int dims[]=getArrayLengths(array);
  Object[] elements=(Object[])muxArray(array,dims,componentType);
  return demuxArray(elements,dims,componentType);
}

public static Object clone ( Object array ) { Class < ? > componentType = getComponentType ( array . getClass ( ) ) ; int dims [ ] = getArrayLengths ( array ) ; Object [ ] elements = ( Object [ ] ) muxArray ( array , dims , componentType ) ; return demuxArray ( elements , dims , componentType ) ; }
clones the multi - dimension structure of an array but the not the individual elements . element references remain the same is in the original .
