how to print all elements of a 2d array code example
Example: print 2d array in java
int[][] array = new int[rows][columns];
System.out.println(Arrays.deepToString(array));
int[][] array = new int[rows][columns];
System.out.println(Arrays.deepToString(array));