import javax.swing.*; /** * This is a class that tests the Deck class. */ public class Main { /** * The main method in this class checks the Deck operations for consistency. * @param args is not used. */ public static void main(String[] args) { Deck d = new Deck(); System.out.println("This should include all the cards in the deck"); System.out.println(d); System.out.println("Testing the getCard and isEmpty methods. Should see all the cards again"); while(!d.isEmpty()) { System.out.println(d.getCard().toString()); } Card c = d.getCard(); if(c == null) { System.out.println("All cards dealt"); } else { System.out.println("Problem with getCard method"); } } }