Results 1 to 5 of 5
Thread: array
- 07-22-2009, 06:47 PM #1
Member
- Join Date
- Jul 2009
- Posts
- 8
- Rep Power
- 0
-
Have a look here: Java 2D array examples
Please come on back if still questions after reviewing the above. Best of luck.Last edited by Fubarable; 07-22-2009 at 07:10 PM.
- 07-22-2009, 08:05 PM #3
Member
- Join Date
- Jul 2009
- Posts
- 8
- Rep Power
- 0
are "2d arrays" and "parallel arrays" the same?
-
No, they are different. Parallel arrays can be 2 dimensional, but usually I think of two or more one-dimensional arrays that hold info that is somehow linked by the indexes. For instance, if you have an array of String holding last names and another array of Strings holding first names and the i-th last name is linked to the i-th first name, that's a parallel array. These are usually not recommended, and much better would be to create a class that holds the two Strings so you can have a single array of objects of this class.are "2d arrays" and "parallel arrays" the same?
- 07-26-2009, 03:45 AM #5
Member
- Join Date
- Jul 2009
- Posts
- 8
- Rep Power
- 0
Similar Threads
-
array or array list?
By Drukqs in forum New To JavaReplies: 5Last Post: 05-06-2009, 06:37 PM -
How to add an integer to a array element and the store that backinto an array.
By Hannguoi in forum New To JavaReplies: 1Last Post: 03-31-2009, 06:40 AM -
String array to byte array?!
By Joe2003 in forum Advanced JavaReplies: 5Last Post: 02-28-2009, 06:09 AM -
Array Reflection: Multi Array Reflection
By Java Tip in forum java.langReplies: 0Last Post: 04-23-2008, 08:08 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks