Instructions
- 1
Declare an enumerated type:
public enum DaysAndMonths
Add some basic categories to the enum type. In this example, you add a "day" type and a "month" type:
public enum DaysAndMonths
day(null),
month(null),
Create sub categories under the basic categories:
public enum DaysAndMonths
day(null),
Monday(day), Tuesday(day), Wednesday(day), Thursday(day), Friday(day),
month(null),
January(month), February(month), March(month), April(month), May(month), June(month), July(month), August(month), September(month),
October(month), November(month), December(month)
No comments:
Post a Comment