Example usage for java.time MonthDay isSupported

List of usage examples for java.time MonthDay isSupported

Introduction

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

Prototype

@Override
public boolean isSupported(TemporalField field) 

Source Link

Document

Checks if the specified field is supported.

Usage

From source file:Main.java

public static void main(String[] args) {
    MonthDay m = MonthDay.now();
    boolean n = m.isSupported(ChronoField.MONTH_OF_YEAR);
    System.out.println(n);//from   ww  w.  j  a  va 2s . c  om

}