| Chris
|
2
|
 |
|
10-10-2005 07:29 PM ET (US)
|
|
I am in Java programming 1 using the Ivor Horton's Beginning Java 2 sdk 1.4 Edition. This is a really good book except for multi-demensional array's.
For example:
float[][] example; example = new float[6][];
This is supposed to declare an array with an X axis of 6 and a Y axis of whatever, but it dosen't work.
I am also using J# to write my program and am having to do this
int[][] a_intArray; a_intArray = new int[][] { {}, {0,152,624,29,43,87}, {0,21,79,425,143,76,92}, {0,89,76}, {0,43,27,53,85,76,90}, {0,34,56,78,14,834}, {0,90,2,47,324,62,89,53}, {0,14,70,81} };
This works, but isn't what is in the book.Why dosen't what the book say work? Is it J# or am I doing it wrong?
|