Here you can find the source of clone(int[] src)
public static int[] clone(int[] src)
//package com.java2s; //License from project: Open Source License public class Main { public static int[] clone(int[] src) { int[] dest = new int[src.length]; System.arraycopy(src, 0, dest, 0, src.length); return dest; }//from w ww.j a v a 2s.co m public static double[] clone(double[] src) { double[] dest = new double[src.length]; System.arraycopy(src, 0, dest, 0, src.length); return dest; } }