title: Printing a Right-Aligned triangle
body: <p>I need to print a Right aligned triangle like so;</p>
  
  <pre><code>   *
    **
   ***
  ****
  </code></pre>
  
  <p>This is what I must use to do so, I am stuck as to what I should do.</p>
  
  <pre><code>    public static void main(String[] args) {
  
  
  }
  
  private static void printWhitespaces(int size) {
      for(int i = 0; i &lt; size; i++){
          System.out.println();
      }
  }
  private static void printStars(int amount) {
      for(int i = 0;i &lt; amount; i++){
          System.out.print("*");
      }
  }
  private static void printTriangle(int rows) {
      for(int i = 0; i &lt; rows; i++) {
          // Right aligned triangle code
  
      }
  
  }
  </code></pre>
  
  <p>}</p>