Java Array Deep Copy deepClone(int[][] source)

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

Description

deep Clone

License

Open Source License

Declaration

public static int[][] deepClone(int[][] source) 

Method Source Code

//package com.java2s;

public class Main {
    public static int[][] deepClone(int[][] source) {
        int[][] result = new int[source.length][];
        for (int i = 0; i < source.length; i++)
            result[i] = source[i].clone();
        return result;
    }/*  w  ww . j av a 2s.  c  om*/

    public static float[][] deepClone(float[][] source) {
        float[][] result = new float[source.length][];
        for (int i = 0; i < source.length; i++)
            result[i] = source[i].clone();
        return result;
    }
}

Related

  1. deep_copy(int M[][])
  2. deepArrayCopy(double[][] original)
  3. deepArrayCopy(double[][] original)
  4. deepArrayCopy(double[][] original)
  5. deepClone(double[][] ary)
  6. deepCopy(byte[] org)
  7. deepCopy(double[][] in)
  8. deepCopy(final String s)
  9. deepCopy(int[] array)