Skip to content
Snippets Groups Projects
Commit 1771ee9d authored by Goik Martin's avatar Goik Martin
Browse files

X-mas tree corrected

parent 48983c14
No related branches found
No related tags found
No related merge requests found
......@@ -3764,9 +3764,9 @@ System.out.println("<emphasis role="red">[___]</emphasis>");
// Printing the tree's top. We have to escape the backslash using \\.
System.out.print("""
\\ /
--&gt;*&lt;--
/_\\""".indent(numberOfRowGroups));
\\ /
--&gt;*&lt;--
/_\\""".indent(numberOfRowGroups));
// Printing the tree's body
......@@ -3777,7 +3777,7 @@ for (int rowGroup = 0; rowGroup &lt; numberOfRowGroups; rowGroup++) {
System.out.print(('/' + "_\\".repeat(rowGroup + 2)).indent(indentation));
// Second body line of current group
System.out.print(("/_".repeat(rowGroup + 2) + '\\').indent(indentation));
System.out.print(("/_".repeat(rowGroup + 3) + '\\').indent(indentation - 1));
}
// Printing the tree's trunk
System.out.print("[___]".indent(numberOfRowGroups + 1));</programlisting>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment