For example, I have an input N(you don't know until running time), and I want to build an array with N dimensions.
I cannot define the number of dimensions when I write my code like when we generally build a four-dimensional array:
int [][][][] array = new int[3][3][3][3].
I need this array because the dimension I need to store the input is flexible, which means you cannot know the dimension until someone input it at running time.
And what's more, after I built this array, how can I have access to it? I cannot handle it as usual like
array[1][2][3][4] = 5
because I don't know the number of dimension when I write my code.
How can I reach my aim?