title: Upside down right triangle in Java
body: <p>I need to do this:</p>
  
  <pre><code>*****
   ****
    ***
     **
      *
  </code></pre>
  
  <p>and I have this code:</p>
  
  <pre><code>for (int i=0; i&lt;5; i++)
          {
              for (int j=5; j&gt;i; j--)
              {    
                  System.out.print("*");
              }
              System.out.println("");
  </code></pre>
  
  <p>which outputs this:</p>
  
  <pre><code>*****
  ****
  ***
  **
  *
  </code></pre>
  
  <p>I cant figure out how to implement the spaces. Any help appreciated.</p>