/** * This class will hold instances of 2 cards. * * @author Devin Gray and Class * @version 2/17/2016 */ public class Hand { private Card card1; private Card card2; public Hand() { } public void addFirstCard(Card card1) { this.card1 = card1; } public void addSecondCard(Card card2) { this.card2 = card2; } /** * A dealer will "Hit" if the initial two cards either * (1) total 16 or less * Otherwise, the dealer will "Stand". */ public void evaluate() { int handValue = card1.getValue() + card2.getValue(); if(handValue <= 16) { System.out.println("Hit"); } else { System.out.println("Stand"); } } }