public class Hand { final int NUMBER_OF_CARDS = 52; Card[] std = new Card[NUMBER_OF_CARDS]; int handCount; // how many cards in Hand public Hand(){ handCount = 0; } public void show(){ for (int i = 0; i 0) result = true; else result = false; return result; } public void addWarPile(WarPile w){ while (w.pileNotEmpty()){ Card c = w.takeFrom(); this.addCard(c); } shuffle(); } public Card playOne(){ Card next; if (hasCards()){ next = std[handCount-1]; handCount = handCount - 1; } else next = null; return next; } }