java.time.Year.atMonthDay(MonthDay monthDay) 方法示例


java.time.Year.atMonthDay(MonthDay monthDay) 方法示例

package com.codingdict;



import java.time.LocalDate;

import java.time.MonthDay;

import java.time.Year;



public class YearDemo {

   public static void main(String[] args) {



      Year year = Year.of(2015);

      MonthDay monthDay = MonthDay.of(12,26);

      LocalDate date = year.atMonthDay(monthDay);

      System.out.println(date);  

   }

}