java.time.Year.atMonth(Month month) java.time.Year.atMonth() 方法示例 java.time.Year.atMonthDay(MonthDay monthDay) 方法示例 java.time.Year.atMonth(Month month) package com.codingdict; import java.time.YearMonth; import java.time.Month; import java.time.Year; public class YearDemo { public static void main(String[] args) { Year year = Year.of(2015); YearMonth date = year.atMonth(Month.OCTOBER); System.out.println(date); } } java.time.Year.atMonth() 方法示例 java.time.Year.atMonthDay(MonthDay monthDay) 方法示例