title: Merge two multidimensional string arrays in Java
body: <p>I have (at least) two multidimensional String arrays (with UNequal dimensions), that I am trying to put side by side. That is,</p>
  
  <p><code>String[][] arrayOne</code> contains the following:</p>
  
  <pre><code>aaaaa
  aaaaa
  aaaaa
  aaaaa
  aaaaa
  aaaaa
  aaaaa
  </code></pre>
  
  <p>...and <code>String[][] arrayTwo</code> contains the following:</p>
  
  <pre><code>bbbbbbbb
  bbbbbbbb
  bbbbbbbb
  bbbbbbbb
  </code></pre>
  
  <p>...and <code>String[][] arrayThree</code> contains the following:</p>
  
  <pre><code>ccccccc
  ccccccc
  ccccccc
  ccccccc
  ccccccc
  ccccccc
  ccccccc
  ccccccc
  </code></pre>
  
  <p>What I have been unsuccessfully trying to do is create a method which returns the following (preferrably as a multidimensional String array, but as a String works too):</p>
  
  <p><code>String[][] result</code> contains the following:</p>
  
  <pre><code>               ccccccc
                 ccccccc
  aaaaa          ccccccc
  aaaaa          ccccccc
  aaaaa          ccccccc
  aaaaa bbbbbbbb ccccccc
  aaaaa bbbbbbbb ccccccc
  aaaaa bbbbbbbb ccccccc
  aaaaa bbbbbbbb ccccccc
  </code></pre>
  
  <p>So basically, the method would put the arrays side-by-side, align them all to the bottom, and combine them into one array.</p>
  
  <p>So far, my complex attempts to solve this problem have only created more errors, and trying to debug with println statements and the like has only confused me more. And I figured someone mush known a fairly easy way to accomplish this task.</p>
  
  <p>If anyone knows, your help would be greatly appreciated!!!</p>
  
  <p>*<em>EDIT - *</em> Example #2:</p>
  
  <pre><code>aaaa            bbb            ccccc                       ccccc
  aaaa   'plus'   bbb   'plus'   ccccc   'yields'   aaaa     ccccc
  aaaa                           ccccc              aaaa bbb ccccc
                                 ccccc              aaaa bbb ccccc
  </code></pre>