Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7bdabe1

Browse files
TnecivTneciv
Tneciv
authored and
Tneciv
committed
修改错误拼写"break" at line 17
1 parent 532ff0c commit 7bdabe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎contents/breaking-out-of-nested-loops-in-java.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ for (Type type : types) {
1414

1515
###回答
1616

17-
可以用brea+label的语法,例子如下
17+
可以用break+label的语法,例子如下
1818
```java
1919
public class Test {
2020
public static void main(String[] args) {
@@ -36,4 +36,4 @@ public class Test {
3636
首先在for循环前加标签,如例子中的outerloop,然后在for循环内break label(如本例的outerloop),就会跳出该label指定的for循环。
3737

3838
stackoverflow链接:
39-
http://stackoverflow.com/questions/886955/breaking-out-of-nested-loops-in-java
39+
http://stackoverflow.com/questions/886955/breaking-out-of-nested-loops-in-java

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /