title: Java For Loop help
body: <p>Hi
  I need to create a Java SHA1 brute force application and need help with the for loops to create the words to guess. I need to guess passwords between 1 and 6 chars long. So I need a loop that starts with A...Z and then AA....AZ etc So adding letters as it goes along. </p>
  
  <p>I am using a Char array to store the letters from a - z and numbers from 0 - 9. Thats what I am looping through.</p>
  
  <p>This is my loop at the moment:</p>
  
  <pre><code>for (int a = 0; a&lt;36; a++){
  
          guess[5] = letters[a];
  
           for (int b = 0; b&lt;36; b++){
  
            guess[4] = letters[b];
  
               for (int c = 0; c&lt;36; c++){
  
                      guess[3] = letters[c];
  
               for (int d = 0; d&lt;36; d++){
  
                       guess[2] = letters[d];
  
                      for (int e = 0; e&lt;36; e++){
  
                          guess[1] = letters[e];
  
                          for (int f = 0; f&lt;36; f++){
  
                             guess[0] = letters[f];
  </code></pre>
  
  <p>thanks</p>