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;

public class Main {

    public static boolean isLeapYear(int year) {
        return (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0);
    }/*from  w  w w .  j a v  a  2s  . co m*/
}

Related

  1. isLeapYear(final int year)
  2. isLeapYear(int prolepticYear)
  3. isLeapYear(int y)
  4. isLeapYear(int y)
  5. isLeapYear(int year)
  6. isLeapYear(int year)
  7. isLeapYear(int year)
  8. isLeapYear(int year)
  9. isLeapYear(int year)