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

private static boolean isLeapYear(int year) 

Method Source Code

//package com.java2s;

public class Main {
    private static boolean isLeapYear(int year) {
        boolean isLeapYear = false;
        if (year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)) {
            isLeapYear = true;//  ww w.j  av a2s. c o m
        }
        return isLeapYear;
    }
}

Related

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