Skip to content

Instantly share code, notes, and snippets.

@nowshad-hasan
Created October 9, 2021 12:53
Show Gist options
  • Save nowshad-hasan/0ff450e6c1826c659fad0678bf038589 to your computer and use it in GitHub Desktop.
Save nowshad-hasan/0ff450e6c1826c659fad0678bf038589 to your computer and use it in GitHub Desktop.
private static void getDayStatus(WeekDay day) {
switch (day) {
case SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY -> System.out.println("On day");
case FRIDAY, SATURDAY -> System.out.println("Off day");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment