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 );
1
Expert's answer
2012-12-05T10:04:25-0500
You must write: System.out.println( "The array elements are" + a[0][0] );
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment