Update Print2DArray.java

This commit is contained in:
Neetika23 2023-11-23 23:00:57 +05:30 committed by GitHub
parent b62e4d4baf
commit 6b8040ffff
1 changed files with 0 additions and 7 deletions

View File

@ -20,13 +20,6 @@ public class Print2DArray{
public static void print2DDeepToString(int[][] myArray){
System.out.println(Arrays.deepToString(myArray));
}
public static void printArrayAsList(int[][] myArray) {
for (int[] row : myArray) {
List<Integer> rowList = Arrays.asList(Arrays.stream(row).boxed().toArray(Integer[]::new));
System.out.println(rowList);
}
}
public static void printArrayString(int[][] myArray) {
for (int[] row : myArray) {