Skip to content

Commit 9f27797

Browse files
Merge pull request #427 from Yachika9925/patch-5
Create enumerations.java
2 parents cd47a5c + 452225f commit 9f27797

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

enumerations.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
enum Day {
2+
SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY
3+
}
4+
5+
public class EnumDemo {
6+
public static void main(String[] args) {
7+
Day today = Day.SUNDAY;
8+
System.out.println("Today is " + today);
9+
}
10+
}

0 commit comments

Comments
 (0)