package jcrib;

public enum Suit {
    Spade,
    Heart,
    Diamond,
    Club;

    public static Suit fromString(String s) {
        s = s.toLowerCase();
        switch (s) {
            case "s":
                return Spade;
            case "h":
                return Heart;
            case "d":
                return Diamond;
            case "c":
                return Club;
        }
        return null;
    }

    @Override
    public String toString() {
        switch (this) {
            case Spade:
                return "s";
            case Heart:
                return "h";
            case Diamond:
                return "d";
            case Club:
                return "c";
        }
        return null;
    }
}

@@ -74,16 +74,64 @@
  Club;%0A%0A
+    private static boolean fancyChars = false;%0A%0A
     publ
@@ -239,32 +239,16 @@
 ase %22s%22:
-%0A               
  return 
@@ -275,32 +275,16 @@
 ase %22h%22:
-%0A               
  return 
@@ -311,32 +311,16 @@
 ase %22d%22:
-%0A               
  return 
@@ -349,16 +349,29 @@
 ase %22c%22:
+ return Club;
 %0A       
@@ -363,32 +363,34 @@
 n Club;%0A        
+%7D%0A
         return C
@@ -392,43 +392,90 @@
 urn 
-Club
+null
 ;%0A   
+ 
+%7D%0A%0A
     
- %7D%0A        return null
+public static void enableFancyChars() %7B%0A        fancyChars = true
 ;%0A  
@@ -520,24 +520,54 @@
 oString() %7B%0A
+        if (fancyChars) %7B%0A    
         swit
@@ -586,24 +586,28 @@
             
+   
+ 
 case Spade:%0A
@@ -605,16 +605,28 @@
 e Spade:
+ return %22%E2%99%A0%22;
 %0A       
@@ -625,32 +625,44 @@
 %0A               
+ case Heart:
  return %22s%22;%0A   
@@ -654,17 +654,17 @@
 return %22
-s
+%E2%99%A5
 %22;%0A     
@@ -670,27 +670,45 @@
         
+    
 case 
-Heart:
+Diamond: return %22%E2%99%A6%22;
 %0A       
@@ -707,32 +707,43 @@
 %0A               
+ case Club:
  return %22h%22;%0A   
@@ -735,17 +735,17 @@
 return %22
-h
+%E2%99%A3
 %22;%0A     
@@ -751,29 +751,102 @@
         
-case Diamond:
+%7D%0A        %7D else %7B%0A            switch (this) %7B%0A                case Spade: return %22s%22;
 %0A       
@@ -845,32 +845,44 @@
 %0A               
+ case Heart:
  return %22d%22;%0A   
@@ -878,12 +878,16 @@
 rn %22
-d
+h
 %22;%0A
+    
     
@@ -903,41 +903,81 @@
 ase 
-Club:%0A                return %22c%22;
+Diamond: return %22d%22;%0A                case Club: return %22c%22;%0A            %7D
 %0A   

Add fancy suit characters