Java Leap Year Check isLeapYear(int year)

Here you can find the source of isLeapYear(int year)

Description

is Leap Year

License

Open Source License

Declaration

public static boolean isLeapYear(int year) 

Method Source Code

//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
}

Related

  1. isLeapYear(int year)
  2. isLeapYear(int year)
  3. isLeapYear(int year)
  4. isLeapYear(int year)
  5. isLeapYear(int year)
  6. isLeapYear(Integer year)
  7. isLeapYear(long year)
  8. isLeapYear(long year)
  9. isLeapYear(String inputDate)