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

Question #20632
To access the number of rows in a two-dimensional array named grades, we use _________________
A) grades
B) grades[i].length
C) grades.size
D) grades.length()
E) grades.length
1
Expert's answer
2012-12-18T10:10:53-0500
the correct answer: B) grades[i].length

Example:

public class test {

public static void main (String ... args) {

& int[][] arr = new int[3][7];

& System.out.print(arr[1].length);

}
}

Result = 7;

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