mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Fix comment for loop 99 → 100 (#4649)
Co-authored-by: yuyf <yuyanfei@cmict.chinamobile.con>
This commit is contained in:
parent
b314e0076a
commit
eeb6c05ebb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user