1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-06 23:06:49 +02:00

Update comment in Java doWhile loop

This commit is contained in:
Vy Hong
2019-10-22 08:35:34 -07:00
committed by GitHub
parent ef1ccd2b0f
commit 05872fc631

View File

@@ -381,7 +381,7 @@ public class LearnJava {
do { do {
System.out.println(fooDoWhile); System.out.println(fooDoWhile);
// Increment the counter // Increment the counter
// Iterated 99 times, fooDoWhile 0->99 // Iterated 100 times, fooDoWhile 0->99
fooDoWhile++; fooDoWhile++;
} while(fooDoWhile < 100); } while(fooDoWhile < 100);
System.out.println("fooDoWhile Value: " + fooDoWhile); System.out.println("fooDoWhile Value: " + fooDoWhile);