2 Replies Latest reply: Dec 24, 2007 3:44 AM by 807603 RSS

    How to determine rows and columns of a two dimensional array at runtime?

      Dear All,
      I am using Java 5.
      I have defined an array as follows:

      int[][] arr= { {1,2,3}, {4,5,6}};

      Using the reference of arr, how can i get the rows (2) and columns (3) of this array at run-time?

      Thanks in advance.