Skip to content

Commit f7df6f5

Browse files
committed
testando a declaração var
1 parent 7e338aa commit f7df6f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/com/example/HelloWorld.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ public static void main(String[] args) {
1919

2020
char sexo = 'F';
2121
System.out.println("sexo: " + sexo);
22-
22+
2323
boolean necessidadesEspeciais = false;
2424
System.out.println("tem necessidades especiais: " + necessidadesEspeciais);
2525

26+
var variavelTipadaAutomaticamentePeloCompilador = 10;
27+
System.out.println("variavelTipadaAutomaticamentePeloCompilador: " + variavelTipadaAutomaticamentePeloCompilador);
28+
2629
}
2730
}

0 commit comments

Comments
 (0)