title: I'm trying to create a new line but it's not working
body: <pre><code>int exponent = Integer.parseInt(txtExponent.getText());
  int base = Integer.parseInt(txtBase.getText());
  int n = Integer.parseInt(txtExponent.getText());
  StringBuilder sb = new StringBuilder();
  
  for (int i = 1; i &lt;= n; i++) {
      sb.append( base + &quot; to the power of &quot; + i + &quot;=&quot; + &quot;\n&quot;) //no new line
          .append(System.lineSeparator());
  }
  </code></pre>
  <p>I'm trying to create a new line for every new loop, ex to the power of 3 new line to the power of 4. But it won't work.</p>
  <pre><code>input txtOutput.settext (sb)
  </code></pre>
  <p>expected output:</p>
  <pre><code>-to the power of 4= 
  -to the power of 5= 
  -to the power of 6=
  etc
  </code></pre>
  <p>Actual output:</p>
  <pre><code>to the power 4= to the power of 5= to the power of 6=
  </code></pre>