I've searched around and seen posts about initializing jagged 3D arrays in other languages but not in Java.
I need user input to initialize the sizes of this jagged 3D array. So, for example
UserInput: 3
Meaning I would want array[3][][]. Then
UserInput: 2, 1, 2
Meaning that array[space0][2][], array[space1][1][], array[space2][2][]
The final and third [ ] in the array is initialized to the same size as the next space's previous side. I probably said that terribly. Example,
array[space0][2][]isarray[space0][2][1]andarray[space1][1][]isarray[space1][1][2]
I hope I've explained that well enough.
My issue is my knowledge of Java as a programming language and figuring out how to initialize stuff correctly.
I can easily take user input X, and then go array[X][][] and then take X more inputs for array[X][w,x,y][], etc, but Java does not like that.
array[space0][2][]isarray[space0][2][1]- that doesn't make any sense. What was that supposed to mean?