Java Leap Year Check leapYear(int year)

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

Description

leap Year

License

Apache License

Declaration

public static boolean leapYear(int year) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static boolean leapYear(int year) {
        if (year < 4) {
            return false;
        }/*from ww w .j a va2s  . c o  m*/
        return (year % 400 == 0) || (year % 100 != 0 && year % 4 == 0);
    }
}

Related

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