java.time.Year.isLeap() java.time.Year.atMonthDay(MonthDay monthDay) 方法示例 java.time.Year.with(TemporalField field, long newValue) java.time.Year.isLeap() package com.codingdict; import java.time.Year; public class YearDemo { public static void main(String[] args) { System.out.println(Year.isLeap(2016)); } } java.time.Year.atMonthDay(MonthDay monthDay) 方法示例 java.time.Year.with(TemporalField field, long newValue)