In java—- The DeckTester.java file, provides a basic set ofDeck tests. Add additional code at the bottom of the main method tocreate a standard deck of 52 cards and test the shuffle method inthe Deck class. After testing the shuffle class, use the DecktoString method to “see” the cards after every shuffle.
Deck:
import java.util.List;
import java.util.ArrayList;
/**
* The Deck class represents a shuffled deck of cards.
* It provides several operations including
* initialize, shuffle, deal, and check if empty.
*/
public class Deck {
/**
* cards contains all the cards in the deck.
*/
private List<Card> cards;
/**
* size is the number of not-yet-dealt
PayPal Gateway not configured
PayPal Gateway not configured