title: I want to know what is system.out.println() doing in this code
body: <p>I don't know why there are system.out.println in the end of these code. what  is this and why is it here?</p>
  
  <p>This code is a code from my friend, he told me to understand this code and I don't understand why there are system.out.println after this code.</p>
  
  <pre><code>public class Nestedlooplab2 {
      public static void main(String[] args) {
          for (byte i = 1; i &lt;= 5; i++) {
              for (byte j = 1; j &lt;= i; j++) {
                  System.out.print(".");
              }
              for (byte k=1; k&lt;=(5-i);k++) {
                  System.out.print("*");
              } System.out.println();}
      }
      }
  </code></pre>