Example usage for java.time Year isValidMonthDay

List of usage examples for java.time Year isValidMonthDay

Introduction

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

Prototype

public boolean isValidMonthDay(MonthDay monthDay) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    Year y = Year.of(2014);

    System.out.println(y.isValidMonthDay(MonthDay.of(Month.APRIL, 1)));

}