java.time.DayOfWeek.getDisplayName() 方法示例 java.time.DayOfWeek.get() 方法示例 java.time.DayOfWeek.getValue() 方法示例 java.time.DayOfWeek.getDisplayName() 方法示例 package com.codingdict; import java.time.DayOfWeek; import java.time.format.TextStyle; import java.util.Locale; public class DayOfWeekDemo { public static void main(String[] args) { DayOfWeek day = DayOfWeek.of(3); System.out.println(day.getDisplayName(TextStyle.SHORT,Locale.ENGLISH)); } } java.time.DayOfWeek.get() 方法示例 java.time.DayOfWeek.getValue() 方法示例