Question: In java Build a two dimensional array out of the following three lists. The array will represent a deck of cards. The values in dCardValues
In java
Build a two dimensional array out of the following three lists. The array will represent a deck of cards. The values in dCardValues correspond to the card names in dCardNames. Note that when you make an array all data types must be the same. Apply dSuits to dCardValues and dCardNames by assigning a suit to each set of 13 elements.
dCardNames = ['2','3','4','5','6','7','8','9','10','J','Q','K','A']
dCardValues = ['2','3','4','5','6','7','8','9','10','11','12','13','14']
dSuits = ["Clubs","Spades","Diamonds","Hearts"]
Once you have this two dimensional array, you should shuffle it either by function or by code to produce a shuffled deck of cards.
Randomly choose and extract five cards from the deck.
After that apply the selection sort to the two dimensional array returning it to it original state as listed above.
Reshuffle and apply the bubble sort.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
