Example usage for java.time MonthDay isValidYear

List of usage examples for java.time MonthDay isValidYear

Introduction

In this page you can find the example usage for java.time MonthDay isValidYear.

Prototype

public boolean isValidYear(int year) 

Source Link

Document

Checks if the year is valid for this month-day.

Usage

From source file:Main.java

public static void main(String[] args) {
    MonthDay m = MonthDay.now();
    boolean n = m.isValidYear(2010);
    System.out.println(n);//from  ww w  . j av a  2s .com

}