Java Array Clone clone(int[] src)

Here you can find the source of clone(int[] src)

Description

clone

License

Open Source License

Declaration

public static int[] clone(int[] src) 

Method Source Code

//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;
    }
}

Related

  1. clone(int[] a)
  2. clone(int[] array)
  3. clone(int[] array)
  4. clone(int[] array)
  5. clone(int[] in)
  6. clone(int[] src, int[] dest)
  7. clone(Object[] array)
  8. clone(Object[] array)
  9. clone(Object[] array)