Example usage for java.time MonthDay getMonth

List of usage examples for java.time MonthDay getMonth

Introduction

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

Prototype

public Month getMonth() 

Source Link

Document

Gets the month-of-year field using the Month enum.

Usage

From source file:Main.java

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

}