public class t { static int [][] numbers = {{1,2,3}, {4,5,6}}; public static void main(String[] s) { for (int r = 0; r < numbers[0].length; r++) { for (int c = 0; c < numbers.length; c++) { System.out.print(numbers[r][c]); } } } }