title: Java increment string through array
body: <p>I don't know why I can't work this one in my head. </p>
  
  <p>I have an array of characters in my Java code..</p>
  
  <pre><code>private String[] letters = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
      "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"
  };
  </code></pre>
  
  <p>What I need to do is loop through building strings for every possible configuration. </p>
  
  <p>Example:</p>
  
  <p>a
  aa
  ab
  ac
  .
  .
  .
  aaa
  aab
  aac
  .
  .
  .
  .
  aba
  abc</p>
  
  <p>and so on up to n length.</p>
  
  <p>Can any one point me in the direction with this problem.</p>
  
  <p>Cheers</p>