I've got the following enum:
enum Rank{TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, JACK, QUEEN,
KING, ACE}
and i'm looking to create two methods. One that returns the previous value. For example, if the method is called on FOUR, THREE is returned. And another that returns the integer value. For example, TWO returns 2, JACK, QUEEN and KING return 10 and ACE returns 11.
Thanks in advance