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


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

package com.codingdict;

import java.time.LocalDate;
import java.time.MonthDay;

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

      MonthDay time = MonthDay.parse("--12-30");
      LocalDate date = time.atYear(2017);
      System.out.println(date);  
   }
}