java.time.MonthDay.isValidYear() 方法示例 java.time.MonthDay.isSupported() 方法示例 java.time.MonthDay.now() 方法示例 java.time.MonthDay.isValidYear() 方法示例 package com.codingdict; import java.time.MonthDay; public class MonthDayDemo { public static void main(String[] args) { MonthDay date = MonthDay.parse("--02-29"); System.out.println(date.isValidYear(2000)); } } java.time.MonthDay.isSupported() 方法示例 java.time.MonthDay.now() 方法示例