java.time.DayOfWeek.isSupported() 方法示例 java.time.DayOfWeek.getValue() 方法示例 java.time.DayOfWeek.minus() 方法示例 java.time.DayOfWeek.isSupported() 方法示例 package com.codingdict; import java.time.DayOfWeek; import java.time.temporal.ChronoField; public class DayOfWeekDemo { public static void main(String[] args) { DayOfWeek day = DayOfWeek.of(3); boolean result = day.isSupported(ChronoField.DAY_OF_WEEK); System.out.println(result); } } java.time.DayOfWeek.getValue() 方法示例 java.time.DayOfWeek.minus() 方法示例