Skip to content

Instantly share code, notes, and snippets.

@loiane

loiane/Main.java

Created Feb 7, 2015
Embed
What would you like to do?
switch-case java
public class Main {
public static void main(String[] args) {
int valor = 1;
switch(valor){
case 1: System.out.println("Valor é 1");
System.out.println("Valor é 1 - outra mensagem");
break;
case 2: System.out.println("Valor é 2");
System.out.println("Valor é 2 - outra mensagem");
break;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.