Example usage for java.time MonthDay range

List of usage examples for java.time MonthDay range

Introduction

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

Prototype

@Override
public ValueRange range(TemporalField field) 

Source Link

Document

Gets the range of valid values for the specified field.

Usage

From source file:Main.java

public static void main(String[] args) {
    MonthDay m = MonthDay.now();
    ValueRange n = m.range(ChronoField.MONTH_OF_YEAR);
    System.out.println(n);/*from www. ja  v a  2 s  .  c  om*/

}