title: Printing astericks triangle using recursion
body: <p>I am trying to print a triangle composed of asterisks using two methods, one to print it upwards, and one downwards. Printing it up is easy and I use the code </p>
  
  <pre><code>public static String printTriangleUp(int n)
  {
      if( n &lt;= 0 ) return "";
  
      String p = printTriangleUp(n - 1);
      p = p + "*";
      System.out.println(p);
  
      return p;
   }
  </code></pre>
  
  <p>And get the output looking like</p>
  
  <pre><code>*
  **
  ***
  ****
  *****
  </code></pre>
  
  <p>However I can't find a way to make it look like</p>
  
  <pre><code>*****
  ****
  ***
  **
  *
  </code></pre>