Results 1 to 7 of 7
Thread: java 2 dimensional no size list
- 04-03-2011, 09:05 AM #1
Member
- Join Date
- Apr 2011
- Posts
- 3
- Rep Power
- 0
- 04-03-2011, 09:17 AM #2
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
Look up lists and how to use them.
- 04-03-2011, 09:28 AM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,605
- Blog Entries
- 7
- Rep Power
- 17
- 04-03-2011, 09:29 AM #4
Member
- Join Date
- Apr 2011
- Posts
- 3
- Rep Power
- 0
- 04-03-2011, 09:35 AM #5
Member
- Join Date
- Apr 2011
- Posts
- 3
- Rep Power
- 0
- 04-03-2011, 10:07 AM #6
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
No, in a list you specify what it's a list of with generics.
So the list jos showed you was a list where each item is a list of double.
A three d list would be a list where each item is a 2d list.
A four d list would be a list where each item is a 3d list
Is what it should loop like, you can test it by adding some items to it and print them.Java Code:List<List<List<List<Double>>>> fourD = new Arraylist<List<List<List<Double>>>();
- 04-03-2011, 10:11 AM #7
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,605
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
Help with java sorting two dimensional array
By Joycey in forum New To JavaReplies: 2Last Post: 03-27-2010, 02:36 AM -
how to create list of list in java ???
By ilayaraja in forum Advanced JavaReplies: 1Last Post: 10-26-2009, 04:30 PM -
Setting frame size to the size of an image
By Yoruichi in forum AWT / SwingReplies: 5Last Post: 04-22-2009, 04:37 PM -
Java heap size
By jmdrocks in forum EclipseReplies: 2Last Post: 12-12-2008, 06:10 AM -
How to get Image size in Java
By Java Tip in forum java.awtReplies: 0Last Post: 06-23-2008, 11:23 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks