Here you can find the source of leapYear(int year)
public static boolean leapYear(int year)
//package com.java2s; //License from project: Apache License public class Main { public static boolean leapYear(int year) { if (year < 4) { return false; }/*from ww w .j a va2s . c o m*/ return (year % 400 == 0) || (year % 100 != 0 && year % 4 == 0); } }