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

Merge pull request #3719 from tvhong/patch-1

[Java/en] Minor typo fix in doWhile loop comment
This commit is contained in:
Divay Prakash
2020-01-24 19:52:12 +05:30
committed by GitHub

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);