-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAula0039.java
More file actions
34 lines (31 loc) · 948 Bytes
/
Aula0039.java
File metadata and controls
34 lines (31 loc) · 948 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
25
26
27
28
29
30
31
32
33
34
/*
:: SITE: eXcript.com
:: FB: fb.com/eXcript
:: URL: https://www.youtube.com/watch?v=8SMB_yRXkec&list=PLesCEcYj003Rfzs39Y4Bs_chpkE276-gD
:: NOME: Curso de Java - Aula 39 - Labels em Blocos de Instruções
*/
public class Aula0039 {
public static void main(String[] args) {
label1:
{
labelIF:
if (true) {
System.out.println("instrução if");
break labelIF;
System.out.println("label 1 ini");
label2:
{
System.out.println("label 2 ini");
label3:
{
System.out.println("label 3 ini");
if (true)
break label2;
}
System.out.println("label 2 fim");
}
System.out.println("label 1 fim");
}
}
}
}