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

private static boolean LeapYear(int year) 

Method Source Code

//package com.java2s;

public class Main {

    private static boolean LeapYear(int year) {
        if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) {
            return true;
        } else {/* w  w  w  .  j  a v  a  2  s .c o  m*/
            return false;
        }
    }
}

Related

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