Android Year Leap Check isLeap(int year)

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

Description

is Leap

Declaration

public static boolean isLeap(int year) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean isLeap(int year) {
        boolean leap = false;
        if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) {
            leap = true;//from   w  w  w . ja v a2 s  .com
        }
        return leap;
    }
}

Related

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