java.time.MonthDay.withDayOfMonth() 方法示例


java.time.MonthDay.withDayOfMonth() 方法示例

package com.codingdict;

import java.time.MonthDay;

public class MonthDayDemo {
   public static void main(String[] args) {

      MonthDay time = MonthDay.parse("--10-15");
      MonthDay result = time.withDayOfMonth(10);
      System.out.println(result);  
   }
}