// Assignment 01#04 due date 6/5/2018
// Page 122#02 Seasons
// #08 Michael Y. C. Shih @ 107 Android Programming Class, EEC, UCH
import java.util.Scanner;
class p122_2 {
public static void main
(String[] args
) { // TODO Auto-generated method stub
Scanner scan
= new Scanner
(System.
in); System.
out.
print("Enter the month: "); int month = scan.nextInt();
scan.close();
switch (month) {
case 2:;
case 3:;
case 4:
System.
out.
println("Month " + month
+ " is Spring."); break;
case 5:;
case 6:;
case 7:
System.
out.
println("Month " + month
+ " is Summer."); break;
case 8:;
case 9:;
case 10:
System.
out.
println("Month " + month
+ " is Autumn."); break;
case 11:;
case 12:;
case 1:
System.
out.
println("Month " + month
+ " is Winter."); break;
default:
System.
out.
println(month
+ " is not a month."); break;
}
}
}