title: Multi-dimensional arrays: Variable length row?
body: <p>It is possible to do variable length columns such as:</p>
  
  <pre><code>private int k[][] = new int[3][];
  
  for(int i = 0; i &lt; k.length; i++) {
     k[i] = new int[i+1];
  }
  </code></pre>
  
  <p>I was wondering if it was possible to do variable length rows, if you know the length of a column?:</p>
  
  <pre><code>private int k[][] = new int[][5];
  
  for(int i = 0; i &lt; k.length; i++) {
     // How would you do this?
  }
  </code></pre>
  
  <p>Thank you.</p>