I guess, for deep copying you will have to iterate over your 2 dimensional array. You can refer the following code for the same:
public static boolean[][] deepCopy(boolean[][] org) {
if (org == null) {
return null;
}
final boolean[][] res = new boolean[org.length][];
for (int i = 0; i < org.length; i++) {
res[i] = Arrays.copyOf(org[i], org[i].length);
}
return res;
}
Hope it helps!!
If not then its recommended to join our Java training class and learn about Java in detail.
Thank You!!