is Julian Leap Year - Java java.util

Java examples for java.util:Year

Description

is Julian Leap Year

Demo Code


//package com.java2s;

public class Main {
    public static void main(String[] argv) throws Exception {
        int y = 2;
        System.out.println(isJulianLeapYear(y));
    }//from   w  w  w  .  java2  s  .  com

    public static boolean isJulianLeapYear(int y) {
        return (y & 3) == 0;
    }
}

Related Tutorials