Java Array Deep Copy deepCopy(int[] array)

Here you can find the source of deepCopy(int[] array)

Description

deep Copy

License

Open Source License

Declaration

public static int[] deepCopy(int[] array) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int[] deepCopy(int[] array) {
        int[] copy = new int[array.length];
        for (int i = 0; i < array.length; i++) {
            copy[i] = array[i];// w w w  .j  a v a  2s  .  co m
        }
        return copy;
    }
}

Related

  1. deepClone(double[][] ary)
  2. deepClone(int[][] source)
  3. deepCopy(byte[] org)
  4. deepCopy(double[][] in)
  5. deepCopy(final String s)
  6. deepCopy(int[][] src, int[][] dest)
  7. deepCopy(Object objectArray)
  8. deepCopy2DArray(float[][] a)
  9. deepCopyOf(double[][] src)