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) {
        return year % 4 == 0 && year % 100 != 0 || year % 400 == 0;
    }//  w ww  .j av  a2 s.c  o  m
}

Related

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