java.time.DayOfWeek.get() 方法示例 java.time.DayOfWeek.from() 方法示例 java.time.DayOfWeek.getDisplayName() 方法示例 java.time.DayOfWeek.get() 方法示例 package com.codingdict; import java.time.DayOfWeek; import java.time.temporal.ChronoField; public class DayOfWeekDemo { public static void main(String[] args) { DayOfWeek day = DayOfWeek.FRIDAY; System.out.println(day.get(ChronoField.DAY_OF_WEEK)); } } java.time.DayOfWeek.from() 方法示例 java.time.DayOfWeek.getDisplayName() 方法示例