Answer to Question #20634 in Java | JSP | JSF for nohra

Question #20634
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++)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS