Here you can find the source of isLeapYear(int year)
public static boolean isLeapYear(int year)
//package com.java2s; import java.util.Calendar; import java.util.GregorianCalendar; public class Main { public static boolean isLeapYear(int year) { Calendar calendar = Calendar.getInstance(); return ((GregorianCalendar) calendar).isLeapYear(year); }// ww w . j a va 2 s . c om }