title: Java: Having trouble declaring an enum with integer constants
body: <p>Urgh, I'm kind of confused on how enums work in Java. In C# and C++ (what I use normally), this seems okay, but Java wants to get mad at me >.></p>
  
  <pre><code>   enum Direction
     {
        NORTH_WEST = 0x0C,
        NORTH      = 0x10,
        NORTH_EAST = 0x14,
        WEST       = 0x18,
        NONE       = 0x20,
        EAST       = 0x28,
        SOUTH_WEST = 0x24,
        SOUTH      = 0x30,
        SOUTH_EAST = 0x3C
     }
  </code></pre>
  
  <p>Could someone tell me what I'm doing wrong?
  Thanks</p>
  
  <p>Here are the errors:</p>
  
  <pre><code> ----jGRASP exec: javac -g Test.java
  
  Test.java:79: ',', '}', or ';' expected
        NORTH_WEST = 0x0C,
                   ^
  Test.java:79: '}' expected
        NORTH_WEST = 0x0C,
                    ^
  Test.java:80: &lt;identifier&gt; expected
        NORTH      = 0x10,
             ^
  Test.java:87: ';' expected
        SOUTH_EAST = 0x3C
                         ^
  </code></pre>