Question: JAVA A deck of playing cards contains 52 cards, made up of 13 cards from 4 suits (clubs, diamonds, hearts, and spades). Each card has
JAVA
A deck of playing cards contains 52 cards, made up of 13 cards from 4 suits (clubs, diamonds, hearts, and spades). Each card has a suit and a face value (1, 2, , 9, Jack, Queen, King). When a deck is created, it is unshuffled (i.e., it will contain 13 cards of the clubs suit, in order 1, 2, , King, followed by 13 cards of the diamonds suit, etc.) Write a program that creates a deck of cards, displays the unshuffled deck, then shuffles and displays the shuffled deck. Be sure to use good object-oriented principles.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
