title: Create a triangle out of stars using only recursion
body: <p>I need to to write a method that is called like <code>printTriangle(5);</code>. We need to create an iterative method and a recursive method (without ANY iteration). The output needs to look like this:</p>
  
  <pre><code>*
  **
  ***
  ****
  *****
  </code></pre>
  
  <p>This code works with the iterative but I can't adapt it to be recursive.</p>
  
  <pre><code>public void printTriangle (int count) {
      int line = 1;
      while(line &lt;= count) {
          for(int x = 1; x &lt;= line; x++) {
              System.out.print("*");
          }
          System.out.print("\n");
          line++;
      }
  }
  </code></pre>
  
  <p>I should note that you cannot use any class level variables or any external methods.</p>