Note that there are some explanatory texts on larger screens.

plurals
  1. POMerge two multidimensional string arrays in Java
    primarykey
    data
    text
    <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>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload