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

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -