title: Finding length of all arrays multidimensional array, Java
body: <p>I would like to use a multidimensional array to store a grid of data. However, I have not found a simple way to find the length of the <strong>2nd</strong> part of the array. For example:</p>
  
  <pre><code>boolean[][] array = new boolean[3][5];
  System.out.println(array.length);
  </code></pre>
  
  <p>will only output <strong>3</strong>.</p>
  
  <p>Is there another simple command to find the length of the second array? (i.e. output 5 in the same manner)</p>