title: How could a for loop be applicated in this?
body: <p>I had this task on a test to create a program in Java that simply writes an pyramid of X letters, based on the natural number a typed in.
  Meaning n=4 would be printing out</p>
  
  <pre><code>X
  XX
  XXX
  XXXX
  </code></pre>
  
  <p>Ive been thinking over this for hours and I think something really obvious,which I cant see, is the problem.</p>
  
  <p>Any help is really appreciated.</p>
  
  <p>PS: Im just a beginner</p>