When processing all the elements of row i of a two-dimensional array named grades using a for loop with variable j, what is the condition of the for loop? _________________ .
A) j < length
B) j < grades.length
C) j <= grades.length
D) j < grades[i].length
E) j <= grades[i].length
1
Expert's answer
2012-12-18T09:26:35-0500
for processing two-dimensional array you should use thenext conditionals for loops: //array named "grades" //for processing the rows of array for(int i=0;i<grades.length;i++) //for processing the columns of array for(int i=0;i<grades[0].length;i++)
Comments
Leave a comment