package com.logicbig.example.monthday;
import java.time.MonthDay;
public class WithMonthExample {
public static void main(String... args) {
MonthDay m = MonthDay.of(4, 10);
System.out.println(m);
MonthDay m2 = m.withMonth(12);
System.out.println(m2);
}
}