Results 1 to 5 of 5
Thread: 2 dimensional Lists
- 01-20-2008, 07:55 AM #1
Member
- Join Date
- Jan 2008
- Posts
- 17
- Rep Power
- 0
- 01-20-2008, 08:57 AM #2
How about Vector of Vector
Java Code:Vector<Vector<String>> twoDimensionalVector ;
dont worry newbie, we got you covered.
- 01-20-2008, 08:57 AM #3
This can probably lead to confusing code down the road, and I would hope someone might have something better but you can try this:
Java Code:ArrayList< ArrayList<String> > my_2dlist = new ArrayList< ArrayList<String> >(); my_2dlist.add( new ArrayList<String>() ); my_2dlist.get(0).add("Hello, World"); System.out.println(my_2dlist.get(0).get(0));Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? Vote now!
Got a little Capt'n in you? (drink responsibly)
- 01-20-2008, 08:58 AM #4
lol captain .. what a timing ..
dont worry newbie, we got you covered.
- 01-20-2008, 09:01 AM #5
Heh, jinx!
Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? Vote now!
Got a little Capt'n in you? (drink responsibly)
Similar Threads
-
How to initialize a two dimensional Array
By Java Tip in forum java.langReplies: 0Last Post: 04-14-2008, 08:48 PM -
Need help with a program for high school regarding multi-dimensional arrays.
By Torque in forum New To JavaReplies: 2Last Post: 01-07-2008, 07:45 PM -
Adding numbers in a 2 dimensional array
By j0shizabeast in forum New To JavaReplies: 2Last Post: 11-27-2007, 04:31 AM -
Help with array multi-dimensional
By barney in forum New To JavaReplies: 1Last Post: 07-31-2007, 08:00 PM -
Tudu Lists 2.0
By JavaBean in forum Java SoftwareReplies: 0Last Post: 07-11-2007, 03:32 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks