enum class

PHOTO EMBED

Fri Sep 27 2024 06:46:56 GMT+0000 (Coordinated Universal Time)

Saved by @Aj

public enum Day {
    MONDAY("Work Day"),
    TUESDAY("Work Day"),
    WEDNESDAY("Work Day"),
    THURSDAY("Work Day"),
    FRIDAY("Work Day"),
    SATURDAY("Weekend"),
    SUNDAY("Weekend");

    private String typeOfDay;

    // Constructor
    Day(String typeOfDay) {
        this.typeOfDay = typeOfDay;
    }

    // Method to get the type of day
    public String getTypeOfDay() {
        return typeOfDay;
    }
}
content_copyCOPY