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) { if ((year % 4 == 0 && year % 400 != 0) || year % 400 == 0) { return true; } else {//from www .j a va 2 s .c o m return false; } } }