Answers for "why do we use enums in java"

1

java enums

enum Level {
  LOW,
  MEDIUM,
  HIGH
}
Posted by: Guest on September-04-2021
0

Enums injava

public enum Day {
    SUNDAY, MONDAY, TUESDAY, WEDNESDAY,
    THURSDAY, FRIDAY, SATURDAY 
}
Posted by: Guest on February-27-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language