Question: This is for a Java code, if anyone can help if be very grateful. A: Create a class called Deck This is not your standard

This is for a Java code, if anyone can help if be very grateful.  This is for a Java code, if anyone can help if
be very grateful. A: Create a class called Deck This is not
your standard playing card deck. A deck object will have an array

A: Create a class called Deck This is not your standard playing card deck. A deck object will have an array of 60 elements, initialized by the constructor to contain the integers 0 through 59. The numbers represent playing cards as follows: 0-12: 13-25 26-38 39-51 52-55 56-59: Ace, 2, 3,.10, Jack, Queen, King of Spades Ace, 2, 3,... 10, Jack, Queen, King of Hearts Ace, 2, 3, 10, Jack, Queen, King of Clubs Ace, 2, 3,..10, Jack, Queen, King of Diamonds Jesters (a Jester doesn't have a suit) Wizards (a Wizard doesn't have a suit) A Deck object will also have an integer variable that stores the number of cards that are left in the deck. This variable is initialized to 60 by the constructor You are to simulate the shuffling of a Deck by repeatedly exchanging the values of two random array elements. (Use the Math.random() method.) You are also required to deal cards from the deck making the deck get smaller, and eventually running out of cards if they are all dealt out. Below, you will see the required methods for this Class. You may write more but you must implement these at a minimum. You are provided a test program (see below) which utilizes your class and creates two Deck objects

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!