int[][] m = {{1, 2, 3}, {4, 5, 6}};
System.out.println(m[1][2]);What is printed?
- Acheck_circle
6
- B
3
- C
5
- D
4
Explanation
m[1] is the second row {4, 5, 6}, and m[1][2] is the third element of that row, which is 6.
AP Computer Science A· difficulty 2/5
int[][] m = {{1, 2, 3}, {4, 5, 6}};
System.out.println(m[1][2]);What is printed?
6
3
5
4
Explanation
m[1] is the second row {4, 5, 6}, and m[1][2] is the third element of that row, which is 6.
Want 10 more like this — adaptive to your weak spots?