Example usage for java.time MonthDay adjustInto

List of usage examples for java.time MonthDay adjustInto

Introduction

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

Prototype

@Override
public Temporal adjustInto(Temporal temporal) 

Source Link

Document

Adjusts the specified temporal object to have this month-day.

Usage

From source file:Main.java

public static void main(String[] args) {
    MonthDay m = MonthDay.now();
    Temporal n = m.adjustInto(LocalDate.now());
    System.out.println(n);//from w ww.  ja v  a2s  . c o  m

}