title: permutations of String Array in recursion
body: <pre><code>String[] test = { "la", "li", "lo" };
  language(3, test);
  
  private String language(int n, String[] syllables) { // example of N = 3
      for (int i = 0; i &lt; syllables.length; i++) {
          String w1 = syllables[i];
          for (int j = 0; j &lt; syllables.length; j++) {
              String w2 = syllables[j];
              for (int x = 0; x &lt; syllables.length; x++) {
                  String w3 = syllables[x];
                  System.out.println(w1 + w2 + w3);
              }
          }
      }
  }
  </code></pre>
  
  <p>I'm trying to create a recursive method that can create any form of the String array.
  But I'm unable to achieve this </p>
  
  <p><strong>Variables</strong>  </p>
  
  <pre><code>n = amount of syllables  
  syllables = String Array of the base words 
  </code></pre>
  
  <p><strong>Output</strong>  </p>
  
  <pre><code>lalala
  lalali
  lalalo
  lalila
  lalili
  lalolo
  lilala
  lolala
  lilili
  lololo
  ......
  </code></pre>