Here you can find the source of clone(int[] a)
public static final int[] clone(int[] a)
//package com.java2s; //License from project: Apache License public class Main { public static final int[] clone(int[] a) { if (a == null || a.length < 1) { return a; }/* w ww . j a v a 2s. com*/ int[] r = new int[a.length]; System.arraycopy(a, 0, r, 0, r.length); return r; } }