Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Enm1 {
- enum Season {
- SUMMER("S U M M E Rī¸ī¸ đ"), AUTUMN("A U T M N đ"), WINTER("W I N T E R âī¸"), SPRING(
- "S P R I N G đą");
- private String value;
- private Season(String value) {
- this.value = value;
- }
- public String toString() {
- return this.value;
- }
- }
- public static void main(String[] args) {
- for (Season s : Season.values()) {
- System.out.println(s);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment