/*  This class contains static methods for manipulating dates.    In this assignment, a month is in the range 1..12, with    1 meaning January, 2 February, etc.    */public class DatesMethods {     /** = the number of days in month m, assuming that there           are no leap years. Precondition: 1 <= m <= 12 */     public static int numberOfDays(int m) {         if (m == 2) {             return 28;         }         if (m == 4 || m == 6 || m == 9 || m == 11) {             return 30;         }         return 31;     }     /** = name of month m. Precondition: 1 <= m <= 12 */     public static String month(int m) {         if  (m == 1) return "January";         if  (m == 2) return "February";         if  (m == 3) return "March";         if  (m == 4) return "April";         if  (m == 5) return "May";         if  (m == 6) return "June";         if  (m == 7) return "July";         if  (m == 8) return "August";         if  (m == 9) return "September";         if  (m == 10) return "October";         if  (m == 11) return "November";         return "December";     }}     