retrieving arrays frrom vecttors or linked list
From: rohan shah (rohans84_at_gmail.com)
Date: 12/30/04
- Next message: Bob Sparks: "Why is Double different from new Double()"
- Previous message: Peter: "Re: Calendar - a problem with Java?"
- Next in thread: klynn47_at_comcast.net: "Re: retrieving arrays frrom vecttors or linked list"
- Reply: klynn47_at_comcast.net: "Re: retrieving arrays frrom vecttors or linked list"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Dec 2004 08:42:31 -0800
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.
- Next message: Bob Sparks: "Why is Double different from new Double()"
- Previous message: Peter: "Re: Calendar - a problem with Java?"
- Next in thread: klynn47_at_comcast.net: "Re: retrieving arrays frrom vecttors or linked list"
- Reply: klynn47_at_comcast.net: "Re: retrieving arrays frrom vecttors or linked list"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|