Perhap this is a simple basic question
Having an enum
public enum TK{ ID,GROUP,DATA,FAIL; }
Can I get the order num
tk.ordinal()
is the way to do it where tk is an instance of TK
tk
TK
http://java.sun.com/javase/6/docs/api/index.html?java/lang/Enum.html#ordinal()