Skip to content

Commit 452225f

Browse files
authored
Create enumerations.java
1 parent 35b3144 commit 452225f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

enumerations.java

+10
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)