xlink:href="P/Sd1/loop/answer/target/site/apidocs/de/hdm_stuttgart/sd1/loop/LoopExample.html#doWhile_squareNumbers-int-">while_squareNumbers(final int limit)</link> {
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/-/blob/master/P/Sd1/loop/answer/src/main/java/de/hdm_stuttgart/sd1/loop/LoopExample.java#L19">whileSquareNumbers(final int limit)</link> {
System.out.println("Computing square numbers");
System.out.println("Computing square numbers");
int i = 4;
int i = 4;
while (i < limit) {
while (i < limit) {
...
@@ -5041,7 +5041,7 @@ public static void doWhileSquareNumbers(final int limit) {
...
@@ -5041,7 +5041,7 @@ public static void doWhileSquareNumbers(final int limit) {
<programlistinglanguage="java">public class LoopExample {
<programlistinglanguage="java">public class LoopExample {
...
...
public static void doWhile_squareNumbers(final int limit) {
public static void doWhileSquareNumbers(final int limit) {
System.out.println("Computing square numbers");
System.out.println("Computing square numbers");
int i = 4;
int i = 4;
do {
do {
...
@@ -5051,15 +5051,17 @@ public static void doWhileSquareNumbers(final int limit) {
...
@@ -5051,15 +5051,17 @@ public static void doWhileSquareNumbers(final int limit) {
xlink:href="P/Sd1/loop/answer/target/site/apidocs/de/hdm_stuttgart/sd1/loop/LoopExample.html#doWhile_squareNumbers-int-">doWhile_squareNumbers</link>(final int limit) {
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/-/blob/master/P/Sd1/loop/answer/src/main/java/de/hdm_stuttgart/sd1/loop/LoopExample.java#L36">doWhileSquareNumbers(final int limit)</link>(final int limit) {
System.out.println("Computing square numbers");
System.out.println("Computing square numbers");
int i = 4;
int i = 4;
if (i < limit) { // Needed !!!
if (i < limit) { // Needed !!!
...
@@ -5071,16 +5073,28 @@ public static void doWhileSquareNumbers(final int limit) {
...
@@ -5071,16 +5073,28 @@ public static void doWhileSquareNumbers(final int limit) {