Skip to content

Instantly share code, notes, and snippets.

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