예제- 달력(일수/윤년/평년)
public static void main(String[] args) { int year = 2018;int month = 1;int days_of_month=0;month =2;switch (month) {case 1: case 3: case 5: case 7: case 8: case 10: case 12:days_of_month = 31;break;case 4: case 6: case 9: case 11:days_of_month = 30;break;case 2:if ((year % 4 == 0) && (year % 100 != 0) || (year % 400 == 0))days_of_month = 29;elsedays_of_month = 28;break;}System.out.println(days_o..