-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBreak.java
More file actions
24 lines (22 loc) · 751 Bytes
/
Break.java
File metadata and controls
24 lines (22 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class Break {
public static void main(String args[]) {
int i;
for(i = 1; i < 4; i++){
one: {
two: {
three: {
System.out.println("\ni eqals to: " + i);
if(i == 1) break one;
if(i == 2) break two;
if(i == 3) break three;
System.out.println("This sign will not show.");
}
System.out.println("After three");
}
System.out.println("After two");
}
System.out.println("After one");
}
System.out.println("After for");
}
}