Java Leap Year Check leapYear(int year)

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

Description

leap Year

License

Open Source License

Declaration

public static boolean leapYear(int year) 

Method Source Code

//package com.java2s;

public class Main {

    public static boolean leapYear(int year) {
        boolean leap;
        if (year % 4 == 0) {
            if (year % 100 == 0) {
                if (year % 400 == 0)
                    leap = true;/*from   w  w  w . j a  va2 s.  c  om*/
                else
                    leap = false;
            } else
                leap = true;
        } else
            leap = false;
        return leap;
    }
}

Related

  1. isLeapYear(Integer year)
  2. isLeapYear(long year)
  3. isLeapYear(long year)
  4. isLeapYear(String inputDate)
  5. leapYear(int year)
  6. leapYear(int year)
  7. LeapYear(int year)
  8. LeapYear(String syear, String smonth, String sday)
  9. leapYearAdjustment(int year, int month)