Example usage for java.time Year isLeap

List of usage examples for java.time Year isLeap

Introduction

In this page you can find the example usage for java.time Year isLeap.

Prototype

public static boolean isLeap(long year) 

Source Link

Document

Checks if the year is a leap year, according to the ISO proleptic calendar system rules.

Usage

From source file:Main.java

public static void main(String[] args) {

    System.out.println(Year.isLeap(2014));

}