title: Java 2D array length
body: <p>I made a very basic 2D Array that has 3 rows and 4 columns like this.</p>
  
  <pre><code>    int [][]array = new int[3][4];
  </code></pre>
  
  <p>When I try to check the length like this,</p>
  
  <pre><code>    System.out.println(array.length);
  </code></pre>
  
  <p>I get a result of 3. However, when I try:</p>
  
  <pre><code>    System.out.println(array[0].length);
  </code></pre>
  
  <p>I get a result of 4. Same thing using <code>array[1].length</code>, and <code>array[2].length</code>. I'm not sure what the compiler is processing. Can anyone explain?</p>
  
  <p>Thanks!</p>