posted 22 years ago
If the size of the array is known beforehand, u can just create a 2 dimension array of Objects.
Object[][] obj = new Object[i][j];
Else u can use Vector, and store a Vector in each of its elements.
-----------------------------
also i want to make a method that if i print one object of first array all objects and sub objecs be printed.
-----------------------------
For this just make the method loop thru all the elements and call print on each element.
- Raj (SCJP, SCWCD, SCEA-I, SCBCD, IBM XML, IBM 483)