/* * File: Year.java * Author: Java Java Java Staff * Description: This class determines if a year is a leap year or not. Note * that the isLeapYear() method is a static class method. Note that the class * is final (so cannot be extended) and its constructor is private (so this * class cannot be instantiated). It is intended to be used like the Math class. * Usage: Year.isLeapYear(int) determines whether its int parameter is a leap year. */ public final class Year { /** * Year() trivial constructor is private so no instantiation. */ private Year() { } /** * isLeapYear() returns true if and only if its year parameter * is a leap year. * Note: This is a static class method callable by Year.isLeapYear() * @param year -- an integer representing the year * @return true if year meets leap year criteria */ public static boolean isLeapYear(int year) { //Insert your code here //use if-else statement and math operator to judge if the input year is a leap year. // return true if it is a leap year, otherwise return false } // isLeapYear() } // Year