1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-16 03:34:53 +02:00

Fix comment for loop 99 → 100 (#4649)

Co-authored-by: yuyf <yuyanfei@cmict.chinamobile.con>
This commit is contained in:
Hex
2023-04-20 21:19:33 +08:00
committed by GitHub
parent b314e0076a
commit eeb6c05ebb

View File

@@ -190,7 +190,7 @@ public class LearnJava {
{
//System.out.println(fooWhile);
//增加计数器
//遍历99次, fooWhile 0->99
//遍历100次, fooWhile 0->99
fooWhile++;
}
System.out.println("fooWhile Value: " + fooWhile);
@@ -201,7 +201,7 @@ public class LearnJava {
{
//System.out.println(fooDoWhile);
//增加计数器
//遍历99次, fooDoWhile 0->99
//遍历100次, fooDoWhile 0->99
fooDoWhile++;
}while(fooDoWhile < 100);
System.out.println("fooDoWhile Value: " + fooDoWhile);