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