Created
October 9, 2021 12:53
-
-
Save nowshad-hasan/0ff450e6c1826c659fad0678bf038589 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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