java.time.DayOfWeek.query() 方法示例 java.time.DayOfWeek.plus() 方法示例 java.time.DayOfWeek.range() 方法示例 java.time.DayOfWeek.query() 方法示例 package com.codingdict; import java.time.DayOfWeek; import java.time.temporal.TemporalQueries; public class DayOfWeekDemo { public static void main(String[] args) { DayOfWeek day = DayOfWeek.of(2); System.out.printf("DayOfWeek precision is %s%n", day.query(TemporalQueries.precision())); } } java.time.DayOfWeek.plus() 方法示例 java.time.DayOfWeek.range() 方法示例