@@ -174,7 +174,7 @@ public class StringIterationExample {
174174
175175 <p ><idx ><c >while</c > loop</idx >
176176 Both Python and Java support the <c >while</c > loop, which continues to execute as long as a condition is true.
177- Here is a simple example in Python that counts down from 5:
177+ < xref ref = " python-countdown " text = " type-global " /> shows a simple example in Python that counts down from 5.
178178 </p >
179179 <listing xml : id =" python-countdown" >
180180 <program interactive =" activecode" language =" python" >
@@ -188,7 +188,7 @@ while i > 0:
188188 </listing >
189189
190190 <p >
191- In Java, we add parentheses and curly braces. Here is the same countdown loop in Java:
191+ In Java, we add parentheses and curly braces. < xref ref = " java-countdown " text = " type-global " /> shows the same countdown loop in Java.
192192 </p >
193193 <listing xml : id =" java-countdown" >
194194 <program interactive =" activecode" language =" java" >
@@ -211,7 +211,7 @@ public class WhileLoopExample {
211211 The <c >do-while</c > loop is very similar to <c >while</c > except that the condition is evaluated at the end of the loop rather than the beginning.
212212 This ensures that a loop will be executed at least one time.
213213 Some programmers prefer this loop in some situations because it avoids an additional assignment prior to the loop.
214- For example, the following loop will execute once even though the condition is initially false.
214+ For example, < xref ref = " java-do-while " text = " type-global " /> shows how loop will execute once even though the condition is initially false.
215215 </p >
216216 <listing xml : id =" java-do-while" >
217217 <program interactive =" activecode" language =" java" >
@@ -227,7 +227,7 @@ public class DoWhileExample {
227227 </code >
228228 </program >
229229 </listing >
230-
230+
231231 </section >
232232 <section xml : id =" chapter5_summary" >
233233 <title >Summary & Reading Questions</title >
0 commit comments