We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4455c5a commit 1f9f8f9Copy full SHA for 1f9f8f9
SwitchCase.java
@@ -1,12 +1,16 @@
1
+//importando o scanner
2
import java.util.Scanner;
3
4
+//criando a classe
5
public class SwitchCase {
-
6
+ //criando um metodo main
7
public static void main(String[] args) {
8
9
+ //objeto para scanear a tecla do usuario
10
Scanner mes = new Scanner(System.in);
11
+ //imprimindo
12
System.out.println("Digite o mes");
13
+ //usando switch para ser chamado de acordo com oque o usuario digitar
14
switch(mes.nextInt()) {
15
case 1:
16
System.out.println("Janeiro");
0 commit comments