Answers for "copy 2d array java"

1

copy array in java 2d

int[][] copy = Arrays.stream(matrix).map(int[]::clone).toArray(int[][]::new);
Posted by: Guest on June-11-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language