Answer to Question #325804 in Java | JSP | JSF for Joy

Question #325804

1. What do you call the 1st array/index in two dimensional array?



2. What do you call the 2nd array/index in two dimensional array?



3. What is the output of the given code?



double[] sales = {12.5, 32.50, 16.90, 23, 45.68,



9, 10.5};



for(int i=0; i<sales.length; i++)



{ } System.out.print(sales.length);




4. What is the output of the given code?



double[][] sales = {



{12.5, 32.50}, (16.90, 23, 45.68}, {1, 2, 3, 4),



};



System.out.print(sales[2][1]);




5. What is the output of the given code?



double[][] sales = {



(12.5, 32.50), (16.90, 23, 45.68}, {1, 2, 3, 4),



}; System.out.print(sales[1][1]);



0
Service report
It's been a while since this question is posted here. Still, the answer hasn't been got. Consider converting this question to a fully qualified assignment, and we will try to assist. Please click the link below to proceed: Submit order

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
New on Blog
APPROVED BY CLIENTS