java.time.MonthDay.isBefore() 方法示例 java.time.MonthDay.isAfter() 方法示例 java.time.MonthDay.isSupported() 方法示例 java.time.MonthDay.isBefore() 方法示例 package com.codingdict; import java.time.MonthDay; public class MonthDayDemo { public static void main(String[] args) { MonthDay date = MonthDay.parse("--12-30"); MonthDay date1 = MonthDay.parse("--12-20"); System.out.println(date1.isBefore(date)); } } java.time.MonthDay.isAfter() 方法示例 java.time.MonthDay.isSupported() 方法示例