Run ❯
Get your
own Java
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
public class Main { public static void main(String[] args) { int[][] myNumbers = { {1, 2, 3, 4}, {5, 6, 7} }; for (int[] row : myNumbers) { for (int i : row) { System.out.println(i); } } } }
1
2
3
4
5
6
7