print 2d grid properly 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));