Adding Array Copy for matrix
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

Currently only boolean but we can add more if we need
This commit is contained in:
Debucquoy committed 2023-04-27 11:16:31 +02:00
1 parent 9711be3665
commit 0baef08205
2 files changed
+39

No files matched your search

@@ -0,0 +1,13 @@
package school_project.Utils;
import java.util.Arrays;
public class Array{
public static boolean[][] MatrixCopyOf(boolean[][] o){
boolean[][] ret = new boolean[o.length][];
for (int i = 0; i < o.length; i++){
ret[i] = Arrays.copyOf(o[i], o[i].length);
}
return ret;
}
}