java.time.YearMonth.atDay() 方法示例


java.time.YearMonth.atDay() 方法示例

package com.codingdict;

import java.time.LocalDate;
import java.time.YearMonth;

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

      YearMonth year = YearMonth.of(2015,12);

      LocalDate date = year.atDay(26);
      System.out.println(date);  
   }
}