Poker Dealer Write a program to deal random 5card hands of p
Poker Dealer. Write a program to deal random 5-card hands of poker from a deck of 52 cards. The cards will be stored in a 52 element integer array as numbers with the value 0 to 51 using the following mapping. 2 3 4 5 6 7 8 9 10 QK Spade 1 2 3 4 5 6 Heart13 14 15 16 17 18 19 20 21 22 23 24 25 7 8 9 10 11 12 26 27 28 29 30 31 32 33 34 35 36 3738 39 40 41 42 43 44 45 46 47 48 49 50 51 Heart Club 2 Dlam 3 Diam First you need to shuffle the deck of cards by writing card values into random index locations. First create a sorted deck by making a 52 element array, and use a loop to initialize it with the card values from 0 to 51 Gust write the index itself to the indexed location). Now shuffle the deck by swapping
Solution
Deck.java
