- public static void main(String[] args) {
- Card c = new Card(Suit.SPADES, Rank.TEN);
- c.reveal();
- System.out.println(c);
+ private static void printTable() {
+ System.out.printf("%s %s\n", stock, waste);
+ }
+
+ public static void main(String[] args) {
+ Card c;
+
+ while (!stock.isEmpty()) {
+ printTable();
+
+ c = stock.draw();
+ c.reveal();
+ waste.add(c);