Route Cases with an enum
An enum is a type with a fixed set of named values.
Your task
Route Case priorities with an enum, then loop over every priority with values().
enum CasePriority { LOW, MEDIUM, HIGH }
class PriorityRouter {
public String route(CasePriority priority) {
return null;
}
}Requirements
.values()should be present.name()should be presentswitch onshould be present insiderouteRoute: LOW to Queueshould be built from runtime valuesHigh: Immediateshould be printedMedium: Todayshould be printedPriority count: 3should be printed- The three
Route:lines should be printed in order