I am working on a program with deck of cards. Currently I have:
public enum Numbers {
N2, N3, N4, N5, N6, N7, N8, N9, N10, JACK, KING, QUEEN, ACE
}
I really need to display them as actual numbers like 1, 2, 3, 4 etc because I am trying to make my program more readable. I tried using a toString method like this but it doesn't really change anything:
N2 {
public String toString() {
return "2";
}
}
Any guidance will be appreciated.