Escolar Documentos
Profissional Documentos
Cultura Documentos
RESPOSTA:
package treinamentojava_aula04;
switch (month) {
case "JANUARY":
case "MARCH":
case "MAY":
case "JULY":
case "AUGUST":
case "OCTOBER":
case "DECEMBER":
System.out.println(month + " has 31 days.");
break;
case "FEBRUARY":
System.out.println(month + " has 28 or 29 days (depending on the
year).");
break;
case "APRIL":
case "JUNE":
case "SEPTEMBER":
case "NOVEMBER":
System.out.println(month + " has 30 days.");
break;
default:
System.out.println("This month does not exist!");
}