Here you can find the source of isLeapYear(int year)
private static boolean isLeapYear(int year)
//package com.java2s; public class Main { private static boolean isLeapYear(int year) { boolean isLeapYear = false; if (year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)) { isLeapYear = true;// ww w.j av a2s. c o m } return isLeapYear; } }