Update index.md

pull/27109/head^2
winsonrich 2018-10-23 15:32:19 +08:00 committed by Kristofer Koishigawa
parent 187ccf11c9
commit 5da9e0bbca
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ localeTitle: 跳转声明
当满足条件时,'break'控制语句会跳出循环。这意味着循环的其余部分将不会运行。 例如在下面的循环中如果我达到5则循环中断因此它不会继续。
```java
for(int i=0;i<10;i++){
for(int i = 0; i < 10; i++){
if(i == 5){ //if i is 5, break out of the loop.
break;