title: How to create right-facing arrow using loops
body: <p>I've been trying to create a right-facing arrow using loops. The output is supposed to look like this </p>
  
  <pre><code>    Output
               1
               11
          00000111
          000001111
          00000111
               11
               1
  </code></pre>
  
  <p>Heres my code </p>
  
  <pre><code>int height = 3;
  int width = 5;
  for (int i = 0; i &lt; height; i++) {
      String row = "";
      for (int j = 0; j &lt; width; j++) {
          row += "0";
      }
      System.out.println(row);
  }
  </code></pre>
  
  <p>I dunno how to create the triangle head and i need some help putting the triangle of 1s.</p>