Here you can find the source of leapYear(int year)
public static boolean leapYear(int year)
//package com.java2s; public class Main { public static boolean leapYear(int year) { boolean leap; if (year % 4 == 0) { if (year % 100 == 0) { if (year % 400 == 0) leap = true;/*from w w w . j a va2 s. c om*/ else leap = false; } else leap = true; } else leap = false; return leap; } }