@Test public void test_isLeapYear() throws Exception { assertEquals(false, isLeapYear(2014)); assertEquals(false, isLeapYear(2015)); assertEquals(true, isLeapYear(2016)); assertEquals(false, isLeapYear(2017)); }
public static boolean isLeapYear(int year) { return !((year % 4 != 0) || ((year % 100 == 0) && (year % 400 != 0))); }
Dint { public static boolean isLeapYear(int year) { return !((year % 4 != 0) || ((year % 100 == 0) && (year % 400 != 0))); } }
Dint { public static boolean isLeapYear(int year) { return !((year % 4 != 0) || ((year % 100 == 0) && (year % 400 != 0))); }  }
Dint { public static boolean isLeapYear(int year) { return !((year % 4 != 0) || ((year % 100 == 0) && (year % 400 != 0))); }  static int create(int year, int month, int day); static int create(Calendar calendar); static int create(Date date); static int compose(int year, int month, int day); static int year(int dint); static int month(int dint); static int day(int dint); static Calendar toCalendar(int dint); static Date toDate(int dint); static int today(); static int firstDayOfMonth(int dint); static int lastDayOfMonth(int dint); static int daysInAMonth(int year, int month); static boolean isLeapYear(int year); static int diff(int dint1, int dint2); static int addYears(int dint, int years); static int addYearsExtend(int dint, int years); static int addMonths(int dint, int add); static int addMonthsExtend(int dint, int add); static int addDays(int dint, int days); }
Dint { public static boolean isLeapYear(int year) { return !((year % 4 != 0) || ((year % 100 == 0) && (year % 400 != 0))); }  static int create(int year, int month, int day); static int create(Calendar calendar); static int create(Date date); static int compose(int year, int month, int day); static int year(int dint); static int month(int dint); static int day(int dint); static Calendar toCalendar(int dint); static Date toDate(int dint); static int today(); static int firstDayOfMonth(int dint); static int lastDayOfMonth(int dint); static int daysInAMonth(int year, int month); static boolean isLeapYear(int year); static int diff(int dint1, int dint2); static int addYears(int dint, int years); static int addYearsExtend(int dint, int years); static int addMonths(int dint, int add); static int addMonthsExtend(int dint, int add); static int addDays(int dint, int days);  }