We have a arraylist of arraylist which will fetch the value from the database and list the values in jsp page. The arraylist may contain various type of object and the size of the araylist of arraylist will be dynamic i.e will vary. Fro eg the arraylist may look like
[ [Suresh,20, 12/2/02, The test value],
[Xavier,26, 12/1/02, The test value with some other value],
[Varun,2, 1/2/02, The test value],
[Suba,24, 28/2/02, The test value],
]
The constraint is that that arraylist of arraylist must be sorted dynamically based on the datatypes ans well as the particular column.
for eg/ if i want to sort the given arraylist with respect to date value, The result of the sorted arraylist must contain the value based on the date and the order of the inner arraylist i.e the row value must not be changed.
Pls help me in solving the pbm.
thanx
Suba
[ [Suresh,20, 12/2/02, The test value],
[Xavier,26, 12/1/02, The test value with some other value],
[Varun,2, 1/2/02, The test value],
[Suba,24, 28/2/02, The test value],
]
The constraint is that that arraylist of arraylist must be sorted dynamically based on the datatypes ans well as the particular column.
for eg/ if i want to sort the given arraylist with respect to date value, The result of the sorted arraylist must contain the value based on the date and the order of the inner arraylist i.e the row value must not be changed.
Pls help me in solving the pbm.
thanx
Suba