7 Enum methods methoddescription int compareTo( E ) all enum types are Comparable by order of declaration boolean equals( o ) not needed; can just use == String name() equivalent to toString int ordinal() returns an enum s 0-based number by order of declaration (first is 0, then 1, then 2,...) methoddescription static E valueOf( s ) converts a string into an enum value static E [] values() an array of all values of your enumeration
{}