Example usage for java.time YearMonth with

List of usage examples for java.time YearMonth with

Introduction

In this page you can find the example usage for java.time YearMonth with.

Prototype

@Override
public YearMonth with(TemporalAdjuster adjuster) 

Source Link

Document

Returns an adjusted copy of this year-month.

Usage

From source file:Main.java

public static void main(String[] args) {
    YearMonth y = YearMonth.now();
    YearMonth s = y.with(YearMonth.of(2013, 01));
    System.out.println(s);/*from www  .  jav a 2s  .c om*/

}