Here you can find the source of isLeapYear(int year)
public static boolean isLeapYear(int year)
//package com.java2s; public class Main { public static boolean isLeapYear(int year) { return (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0); }/*from w w w . j a v a 2s . co m*/ }