package com.logicbig.example.yearmonth;
import java.time.YearMonth;
public class WithMonthExample {
public static void main(String... args) {
YearMonth y = YearMonth.of(2010, 11);
System.out.println(y);
YearMonth y2 = y.withMonth(12);
System.out.println(y2);
}
}