for (int i = 0; i<array.length; i++){ for (int j = 0; j<array[i].length; j++){ string += array[i][j]; } System.out.println(string) }