I created an enum like so
public enum Direction {
NORTH, SOUTH, WEST, EAST, NORTHWEST, NORTHEAST, SOUTHWEST, SOUTHEAST
}
then I try to use it in a switch statement
Direction direction = Direction.NORTH;
switch(direction){
NORTH:
System.out.println("Syntax error on token {, case expected after this token");
break;
}
I am getting the error I put in the println...