for (int x = 0; x < numberOfRowGroups + 1; x++) { // The tree's lower top "/ \".
System.out.print(' '); // We need numberOfRows+1
System.out.print(' '); // We need again numberOfRows+1
} // preceding spaces.
System.out.println("/_\\");
...
...
@@ -1575,7 +1691,7 @@ Midweek</screen>
<para>So far we have not yet introduced methods. In anticipation of upcoming lessons we provide an alternate solution by introducing a method <methodname>printIndented(...)</methodname> which prints a string being indented by a given number of whitespace characters. The System.out.format(...) method will be explained in <xreflinkend="sw1SectSquareNumbersFormatted"/>.</para>
<para>This effectively makes our code more readable:</para>