Here you can find the source of clone(int[] array)
public static int[] clone(int[] array)
//package com.java2s; /**//from w w w. ja v a 2 s. c o m * This class is part of JCodec ( www.jcodec.org ) This software is distributed * under FreeBSD License * * @author Jay Codec * */ public class Main { public static int[] clone(int[] array) { if (array == null) { return null; } return (int[]) array.clone(); } public static long[] clone(long[] array) { if (array == null) { return null; } return (long[]) array.clone(); } public static Object[] clone(Object[] array) { if (array == null) { return null; } return (Object[]) array.clone(); } }