Question: JAVA please use this started code to do the question package assignment2; import java.util.Random; public class Deck { public static String[] suitsInOrder = {clubs, diamonds,
JAVA please use this started code to do the question
package assignment2;
import java.util.Random;
public class Deck {
public static String[] suitsInOrder = {"clubs", "diamonds", "hearts", "spades"};
public static Random gen = new Random();
public int numOfCards; // contains the total number of cards in the deck
public Card head; // contains a pointer to the card on the top of the deck
/*
* TODO: Initializes a Deck object using the inputs provided
*/
public Deck(int numOfCardsPerSuit, int numOfSuits) {
/**** ADD CODE HERE ****/
}
/*

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
