java - How to generate a multidimensional array with unknown amount of dimensions -
i want define array n dimensions. should matrix n dimensions. possible in java define such variable? example can use
method(int[]...)
to give multiple arrays method, can like
int[]... variable;
to generate n-dimensional array?
it isn't possible create dynamic-dimensional array in java. however, can accomplish kind of task using nested objects!
Comments
Post a Comment