Answers for "how to copy one 2d array to another in 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 "how to copy one 2d array to another in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language