Question 1 of 10
A lantern booth stores glow scores in a rectangular tray. What text does this Java code display?
int[][] glow = {
{8, 3, 9},
{4, 7, 2}
};
int min = glow[0][0];
for (int r = 0; r < glow.length; r++) {
for (int c = 0; c < glow[0].length; c++) {
if (glow[r][c] < min) {
min = glow[r][c];
}
}
}
System.out.print(min);
- A. 3
- B. 8
- C. 2
- D. 4