Java DayOfWeek explanation with example

Java DayOfWeek explanation with example : DayOfWeek is an enum in Java that represents all seven days of a week. It is defined as : public enum DayOfWeek The name of the enum values are Monday,Tuesday, Wednesday, Thursday,Friday, Saturday and Sunday. Each name also has one integer value. The values are from 1(for Monday) to […]