Here you can find the source of isLeap(int year)
public static boolean isLeap(int year)
//package com.java2s; public class Main { public static boolean isLeap(int year) { boolean leap = false; if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) { leap = true;//from w w w . ja v a2 s .com } return leap; } }