title: permutations of a certain length
body: <p>I am trying to find the permutations of a string of a certain length. </p>
  
  <p>ex:</p>
  
  <pre><code>java --&gt; permutations of length 2
  
  ja,jv,ja | aj,av,aa | vj, va, va | aj, aa, av
  </code></pre>
  
  <p>What I am having trouble with right now is starting the iteration through different parts of the string. </p>
  
  <p>ex:</p>
  
  <p>create strings in this order iterating at different parts of the string</p>
  
  <p>j --> a,v,a</p>
  
  <p>a --> j,v,a</p>
  
  <p>v --> j,a,a</p>
  
  <p>This is the small bit of code I have so far</p>
  
  <pre><code>// iterate through each character in string
  for (int i = 0; i &lt; strlen; i++) {
    String strBuffer = ""; 
    char mainChar str.charAt(i);
    for (int j = 0; j &lt; len; j++) {  // stop at set length
    /*
     * iterate through different parts at different points
     * 
     */
    }
  </code></pre>