Hey if i have stored array objects in a linked list or vector or any
other
list, then how do i retrive it to a 2 dimensional array.
Consider 1 dimension arrays of objects-obj1[] which i keep on adding
to a vector or any java list from the util class-list1. Thus 1st
element of l1 would contain an array obj1, 2nd element also contains
obj2[] with diff values, and so on. Now if there is an array 2
dimension array obj2[][], then how do I make it possible that
obj2[0][0] contains obj1[0] of element 0 of the list, obj2[0][1]
contains obj1[1] of element 0 of the list and so on, then obj2[1][0]
contains obj1[0] of the 2nd element of the list, obj2[1][1] contains
obj1[1] of 2nd element of the list and so on.
in short obj2[i][j] should contains obj1[jth] element of ith element
of the list.
plz help me urgently.
klynn47@comcast.net - 30 Dec 2004 17:07 GMT
I assume that you're adding the entire array as an element to the
Vector. You should be able to downward cast the element to the array.