Android Year Leap Check isLeapYear(int year)

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

Description

is Leap Year

Declaration

public static boolean isLeapYear(int year) 

Method Source Code

//package com.java2s;

public class Main {

    public static boolean isLeapYear(int year) {
        if ((year % 4 == 0 && year % 400 != 0) || year % 400 == 0) {
            return true;
        } else {//from  www  .j  a  va  2  s .c  o  m
            return false;
        }
    }
}

Related

  1. isLeap(int year)
  2. isLeapYear(int year)
  3. is_leap_year(int year)
  4. isLeapYear(int year)