Java 3D array initialization
19,316
Solution 1
You just forgot the =
sign and a semicolon ;
int[][][] points = {{{100, 120, 10}, {100, 120, 18}}};
Solution 2
int[][][] points = {{{100,200,300},{120,200},{200,250}}};
Comments
-
xdevel2000 almost 2 years
I need to represent some spatial points: x,y,z
when I try to initialize the array like this:
int[][][] points { { {100, 120, 10}, {100, 120, 18}, ... } }
I got an error: Uncompilable source code - not a statement
where is the error?