64 679
Assignments Done
99,2%
Successfully Done
In September 2018

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

Question #20037
54. Where is the error in this code sequence? (This code compiles and runs, but outputs garbage.)
int [ ] [ ] a = { { 3, 26, 48 }, {5, 2, 9 } };
System.out.println( "The array elements are " + a );
Expert's answer

You must write: System.out.println( "The array elements are" + a[0][0] );

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