title: Java word generating algorithm
body: <p>I want to create a word generator, but in a way it almost seems like a numerical system.
  Hex goes from <code>0</code> to <code>f</code>, this algorithm should go from <code>a</code> to <code>z</code>. So the word that is created goes like this (every <code>-</code> means a new word):</p>
  
  <pre><code>a - b - c - d - ... - z - aa - ab - ac - ad - ... - ba - bb - bc - ...
  </code></pre>
  
  <p>Each word is for example stored in a file, so the file would read:</p>
  
  <pre><code>a  
  b  
  c  
  d  
  ...  
  z  
  aa  
  ab  
  ac  
  ...  
  </code></pre>
  
  <p>I think this is possible with a lot of nested <code>for</code> loops and <code>if</code>s, but is there a simpler way to do this? You don't have to tell me the whole algorithm, but a nudge in the right direction is much appreciated.</p>