Dear Friends,

I know there are ways to define one's data type using Enumeration.

How this can be done in Java?

I wish to achieve a ButtonType enum
which can carry the following 2 values only:

ButtonType {num_key, op_key}


ButtonType BigButton = num_key;

Thanks a lot.