title: How can I print matrices of different dimensions in a 3D arrangement?
body: <p>I don't know if you understand me, but I made a 3D array, where each &quot;matrix&quot; has the same rows but different columns:</p>
  <pre class="lang-java prettyprint-override"><code>int nMatrix = 3, rows = 5;
  String[][][] matrix = new String[nMatrix][][];
  matrix[0] = new String[rows][r.nextInt(3) + 5];
  matrix[1] = new String[rows][r.nextInt(3) + 5];
  matrix[2] = new String[rows][r.nextInt(3) + 5];
  </code></pre>
  <p>I wish I could print this but at the same time:</p>
  <pre><code>// 5x5 matrix
  [ ] [ ] [ ] [ ] [ ]
  [ ] [ ] [ ] [ ] [ ]
  [ ] [ ] [ ] [ ] [ ]
  [ ] [ ] [ ] [ ] [ ]
  [ ] [ ] [ ] [ ] [ ]
  
  // 5x7 matrix
  [ ] [ ] [ ] [ ] [ ] [ ] [ ]
  [ ] [ ] [ ] [ ] [ ] [ ] [ ]
  [ ] [ ] [ ] [ ] [ ] [ ] [ ]
  [ ] [ ] [ ] [ ] [ ] [ ] [ ]
  [ ] [ ] [ ] [ ] [ ] [ ] [ ]
  
  // 5x6 matrix
  [ ] [ ] [ ] [ ] [ ] [ ]
  [ ] [ ] [ ] [ ] [ ] [ ]
  [ ] [ ] [ ] [ ] [ ] [ ]
  [ ] [ ] [ ] [ ] [ ] [ ]
  [ ] [ ] [ ] [ ] [ ] [ ]
  </code></pre>
  <p>Is it possible to do something like that?</p>