Here you can find the source of copy(int[] rSource)
static public int[] copy(int[] rSource)
//package com.java2s; public class Main { static public byte[] copy(byte[] rSource) { byte[] aResult = new byte[rSource.length]; System.arraycopy(rSource, 0, aResult, 0, aResult.length); return aResult; }//from w w w . jav a 2 s . co m static public int[] copy(int[] rSource) { int[] aResult = new int[rSource.length]; System.arraycopy(rSource, 0, aResult, 0, aResult.length); return aResult; } }