Hello fellow programmers,
I want to create a Poker game so I started to create a separate class for Card and Deck.
Inside Card.java, I have enum of Ranks and Suits.
In Deck.java I have an arrayList of Cards, but when I create new Card with the two parameters of the enum of Rank and Suits, it won't let me.
I try importing, Card.Ranks and Card.Suits but is no help.
Is there a way to reference my enum outside of class Card?
Any help would be greatly appreciated. Thanks.