Java Array Clone cloneTest(int[] test)

Here you can find the source of cloneTest(int[] test)

Description

clone Test

License

Apache License

Declaration

public static int[] cloneTest(int[] test) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int[] cloneTest(int[] test) {
        int[] rval = new int[test.length];
        for (int i = 0; i < test.length; i++) {
            rval[i] = test[i];//from   ww w .  j  a  v a2  s  . c om
        }
        return rval;
    }
}

Related

  1. cloneIntArray(int array[])
  2. cloneLong(long[] array)
  3. cloneNonNullArray(double[] array)
  4. cloneSubarray(byte[] array, int offset, int len)
  5. cloneSubArray(byte[] data, int offset, int size)