1public static void printGrid(char arr[][]) {
2 for (int row = 0; row < arr.length; row++) {
3 for (int col = 0; col < arr[row].length; col++) {
4 System.out.printf(arr[row][col] + "");
5 }
6 System.out.println();
7 }
8 }