How to find the length of multidimensional Array in Java?