Monday, August 18, 2014

Please help in my Array[] problem


You have declared a "3 dimensional array" but only initialized it to a "2-dimensional array."

Note: The outer {} do not play a part in the dimension. They are simply required to encapsulate

the elements. So your array contents are really just:



Java Code:



{"Mr. ", "Mrs. ", "Ms. "},{"Smith", "Joe","Julian"},{"Lugod", "Jonas", "Smooth"}

Regards,

Jim

No comments:

Post a Comment