diff --git a/Doc/Sd1/Ref/Statements/MoreFunXmasTree/src/main/java/de/hdm_stuttgart/mi/sd1/XmasUsingFormat.java b/Doc/Sd1/Ref/Statements/MoreFunXmasTree/src/main/java/de/hdm_stuttgart/mi/sd1/XmasUsingFormat.java index 8722cd82fb9b78f481d41c6c2e0e0133656b6741..de2222ce19eee21c84d7882bd31bfd3c525af126 100644 --- a/Doc/Sd1/Ref/Statements/MoreFunXmasTree/src/main/java/de/hdm_stuttgart/mi/sd1/XmasUsingFormat.java +++ b/Doc/Sd1/Ref/Statements/MoreFunXmasTree/src/main/java/de/hdm_stuttgart/mi/sd1/XmasUsingFormat.java @@ -49,5 +49,4 @@ public class XmasUsingFormat { // Printing the tree's trunk System.out.format("%"+ (numberOfRowGroups + 6) + "s\n", "[___]"); } - } diff --git a/Doc/Sd1/statements.xml b/Doc/Sd1/statements.xml index a7cdefbf63a716c315edfd496c3c411fb0a9f246..6ca17a1a9d060cfd564951dd9d37a2bc030c1841 100644 --- a/Doc/Sd1/statements.xml +++ b/Doc/Sd1/statements.xml @@ -2891,7 +2891,7 @@ System.out.print("<emphasis role="red">\\</emphasis>"); // Print a single backsl <para>Printing our tree's very top thus requires:</para> - <informaltable border="0"> + <informaltable border="1"> <col width="80%"/> <col width="20%"/> @@ -2915,12 +2915,12 @@ System.out.println("<emphasis role="red">\\ /</emphasis>"); </tr> </informaltable> - <para>As you'll probably realize the expression - <code>numberOfRowGroups + 1</code> equals 6 in case of 5 row - groups like in the illustration given before. Printing our - tree's top next two of lines is straightforward:</para> + <para>The expression <code>numberOfRowGroups + 1</code> equals + an indent of 6 in case of 5 row groups in the illustration given + before. Printing our tree's top next two of lines is + straightforward:</para> - <informaltable border="0"> + <informaltable border="1"> <col width="80%"/> <col width="20%"/> @@ -2960,9 +2960,9 @@ System.out.println("<emphasis role="red">/_\\</emphasis>");</programlisting></td }</programlisting> - <para>We now show the loop's gory details:</para> + <para>We now show the same loop's gory details:</para> - <informaltable border="0"> + <informaltable border="1"> <col width="80%"/> <col width="20%"/> @@ -3020,7 +3020,7 @@ System.out.println("<emphasis role="red">/_\\</emphasis>");</programlisting></td <para>Finally printing the tree's trunk:</para> - <informaltable border="0"> + <informaltable border="1"> <col width="80%"/> <col width="20%"/> @@ -3063,10 +3063,10 @@ System.out.println("<emphasis role="red">[___]</emphasis>"); xlink:href="https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/io/PrintStream.html#format(java.lang.String,java.lang.Object...)">format()</methodname> method as in <xref linkend="sd1QandaSquareNumberTableFormatted"/> allows for - getting rid of these loops completely. As an example printing - the tree's top simplifies to:</para> + getting rid of these. As an example printing the tree's top + simplifies to:</para> - <informaltable border="0"> + <informaltable border="1"> <col width="70%"/> <col width="30%"/> @@ -3102,7 +3102,7 @@ System.out.println("\\ /"); </programlisting></td> xlink:href="https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/lang/String.html#repeat(int)">repeat()</methodname> method:</para> - <informaltable border="0"> + <informaltable border="1"> <col width="70%"/> <col width="30%"/>