check if leap year or not in java

htt‮sp‬://www.lautturi.com
check if leap year or not in java
/**
 * @author lautturi.com 
 * Java example: determine whether a year is leap year or not
 */

import java.util.*;

public class Lautturi {
	public static void main(String[] args) {

		int year = 2000;
		if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0))
			System.out.println("it is a leap year");
		else
			System.out.println("it is not a leap year");
	}
}

output:

it is a leap year
Created Time:2017-10-03 15:58:26  Author:lautturi