import java.util.InputMismatchException; import java.util.Scanner; import java.util.TreeMap; public class Estacion { public static void main(String []args){ Scanner in = new Scanner(System.in); int mes = 0; boolean repetir = true; try { mes = in.nextInt(); }catch (InputMismatchException e) { System.out.println("El numero proveido no es un entero"); } switch (mes){ case 1: System.out.println("Es Verano"); break; case 2: System.out.println("Es Verano"); break; case 3: System.out.println("Es Otonho"); break; case 4: System.out.println("Es Otonho"); break; case 5: System.out.println("Es Otonho"); break; case 6: System.out.println("Es Invierno"); break; case 7: System.out.println("Es Invierno"); break; case 8: System.out.println("Es Invierno"); break; case 9: System.out.println("Es Primavera"); break; case 10: System.out.println("Es Primavera"); break; case 11: System.out.println("Es Primavera"); break; case 12: System.out.println("Es Verano"); break; default: System.out.println("Ese numero no corresponde a un mes del anho"); } } }