Example usage for java.time MonthDay atYear

List of usage examples for java.time MonthDay atYear

Introduction

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

Prototype

public LocalDate atYear(int year) 

Source Link

Document

Combines this month-day with a year to create a LocalDate .

Usage

From source file:Main.java

public static void main(String[] args) {
    MonthDay m = MonthDay.now();
    LocalDate n = m.atYear(1990);
    System.out.println(n);/*from   www.  jav  a  2 s  . c  o m*/

}