Here you can find the source of isLeapYear(int prolepticYear)
private static boolean isLeapYear(int prolepticYear)
//package com.java2s; //License from project: Apache License public class Main { /**// ww w . j a va 2s.c o m * Checks if the year is a leap year, according to the ISO proleptic * calendar system rules. */ private static boolean isLeapYear(int prolepticYear) { return ((prolepticYear & 3) == 0) && ((prolepticYear % 100) != 0 || (prolepticYear % 400) == 0); } }