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? -

javascript - Error handling and status codes with knex in koa -