Java Array Clone cloneArray(boolean[][] src)

Here you can find the source of cloneArray(boolean[][] src)

Description

clone Array

License

Open Source License

Declaration

public static boolean[][] cloneArray(boolean[][] src) 

Method Source Code

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

public class Main {
    public static boolean[][] cloneArray(boolean[][] src) {
        int length = src.length;
        boolean[][] target = new boolean[length][src[0].length];
        for (int i = 0; i < length; i++) {
            System.arraycopy(src[i], 0, target[i], 0, src[i].length);
        }//from   w  w  w .  j a  va 2s  . co  m
        return target;
    }
}

Related

  1. clone2DArray(Double[][] array)
  2. clone2dArray(double[][] myArray)
  3. clone2DArray(final boolean[][] array)
  4. clone_multidim_array(float[][] arr)
  5. cloneAndMultiplyArray(float[] array, float factor)
  6. cloneArray(byte[] bytes)
  7. cloneArray(byte[] in)
  8. cloneArray(double[][] a)
  9. cloneArray(Double[][] src)