public class q10495 {
public static void main(String args[]) {
int[][] numbers = {
{ 1, 2, 3, 4 },
{ 5, 6, 7, 8 }
};
for (int i = 0; i < 2; i++)
for (int j = 0; j < 4;
j++)
System.out.println("The element at [" + i + "][" + j + "]
is
" + numbers[i][j]);
}
}
Comments
Leave a comment