Here is the code to print the array. Any time you see values similar to this
[[[Ljava.lang.String;@f35792c0 (it is not garbage), it is the String representation of the Object
(Arrays are objects in
Java). All objects are inherited from Object class. The Object
class has
toString() method. When you try to print the object in the
System.out.println() method, it will explicitly call object's
toString() method.
The reason
for loops are enclosed in the nested
try...catch block is to catch the
NullPointerException and print the null values.
Go thorough the program output and analyze. Let us know if you need any further clarifications.
[This message has been edited by Manju Swamy (edited March 16, 2000).]