You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
villares edited this page May 24, 2020
·
4 revisions
Nome
case
Exemplos
char letra ='B';
switch(letra) {
case'A':println("Alpha"); // Não é executadabreak;
case'B':println("Bravo"); // Imprime "Bravo" break;
default:println("Zulu"); // Não é executada break;
}
Descrição
Denota os diferentes rótulos a serem avaliados com o parâmetro repassado a estrutura switch().