How to generate symbol combinations? : <p>I have input <code>char[][]</code>. I need to generate possible combinations, where each char array provides symbol for correspond position. for example:</p>

<pre><code>    char[][] symbols = new char[][] {
            {'M', 'm'},
            {'o', '0'},
            {'i', 'l', '|', 'e'},
            {'s', '$'}
    };
</code></pre>

<p>using this input data should be generated :</p>

<pre><code>Mois
Moi$
Mols
Mol$
MoLs
...
m0e$
</code></pre>

<p>I've got trouble how to make condition in arrays to update correct symbol from correct array and build than string.</p>
