Lab 10 – Playing Cards

 

Design and implement a class called Card that represents a standard playing card. Each card has a suit and a face value. Create a second class called DeckOfCards that stores 52 objects of the Card class. Include methods to shuffle the deck, deal a card, and report the number of cards left in the deck. Your shuffle method should assume a full deck. Note that you MUST implement your own shuffle method and may NOT use the shuffle method from the Java Collections class. Create a driver class with a main method that demonstrates shuffling the deck, dealing each card from the shuffled deck, and printing each card as it is dealt.