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; }// w ww .j av a2 s.c o m }