62 499
Assignments Done
98,8%
Successfully Done
In June 2018

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
Expert's answer
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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions