This discussion is archived
2 Replies Latest reply: Feb 1, 2009 8:49 AM by 807588 RSS

Beginner question relating to Enum and reference outside of it

807588 Newbie
Currently Being Moderated
Hello fellow programmers,

I want to create a Poker game so I started to create a separate class for Card and Deck.

Inside, I have enum of Ranks and Suits.

In 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.