Is it possible in Java to find the number of dimensions of an array with an \'a priori\' unknown number of dimensions? That is, if one doesn\'t know the number of dimensions
Just look at its dynamic type either by looking directly in your code where it is initialized or by calling its class and examining its reflected attributes.