title: Implementing toString on Java enums
body: <p>It seems to be possible in Java to write something like this:</p>
  
  <pre><code> private enum TrafficLight {
    RED,
    GREEN;
  
    public String toString() {
     return //what should I return here if I want to return
                                 //"abc" when red and "def" when green?
    }
   }
  </code></pre>
  
  <p>Now, I'd like to know if it possible to returnin the toString method "abc" when the enum's value is red and "def" when it's green. Also, is it possible to do like in C#, where you can do this?:</p>
  
  <pre><code> private enum TrafficLight {
    RED = 0,
    GREEN = 15
    ...
   }
  </code></pre>
  
  <p>I've tried this but it but I'm getting compiler errors with it.</p>
  
  <p>Thanks</p>