diff --git a/Doc/Sd1/objectsClasses.xml b/Doc/Sd1/objectsClasses.xml index 8fcc92895e505d1071ef7984b15f1e217420899c..e757317eb045c04b65bfd14d2baa664743dfa215 100644 --- a/Doc/Sd1/objectsClasses.xml +++ b/Doc/Sd1/objectsClasses.xml @@ -3497,12 +3497,17 @@ public class <link </qandaset> <qandaset defaultlabel="qanda" xml:id="sd1QandaRewriteLoop"> - <title><code>for</code>, <code>while</code> and <code>do</code> ... - <code>while</code></title> + <title>A method for printing square numbers using <code>for</code>, + <code>while</code> and <code>do</code> ... <code>while</code></title> <qandadiv> <qandaentry> <question> + <para>You already did exercises on printing mathematical tables. + This exercise is about decomposing tasks into methods thereby + improving code readability. We also explore using different loop + types.</para> + <para>Consider the following example:</para> <programlisting language="java">public class LoopExample {