title: Getting unknown number of dimensions from a multidimensional array in Java
body: <p>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 of a multidimensional matrix, how could it be retrieved, if possible?</p>