DayOfWeek values() method in Java with Examples
The values() method of java.time.DayOfWeek is an in-built function in Java which returns an array containing the days of the week, e.g. MONDAY, TUESDAY and so on, in the order they are declared. Method Declaration: public static DayOfWeek[] values() Syntax: DayOfWeek week[] = DayOfWeek.values() Para