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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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