|
creating a deck of cards using a linked list
public class Deck extends LinkedList <Card>
{private int cardPos = 0
public Deck()
{
for (int card = 1; card <= 13; card ++)
{ for ( Suit suit: Suit.values())
new Card(card, suit)
}}}
hi all im creating a deck of cards for a poker game and want to store it in a linked list, can someone please help me with storing them in the list and also shuffling and dealing the cards
tahnkyou
|