Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

copy array in java 2d

int[][] copy = Arrays.stream(matrix).map(int[]::clone).toArray(int[][]::new);
 
PREVIOUS NEXT
Tagged: #copy #array #java
ADD COMMENT
Topic
Name
3+9 =