void display()
    {
        String s;
        switch( cardRanks[0] )
        {
            case 1:
                s = "high card";
                break;
            case 2:
                s = "pair of " + Card.rankAsString(cardRanks[1]) + "\'s";
                break;
            case 3:
                s = "two pair " + Card.rankAsString(cardRanks[1]) + " " + 
                    Card.rankAsString(cardRanks[2]);
                break;
            case 4:
                s = "three of a kind " + Card.rankAsString(cardRanks[1]) + "\'s";
                break;
            case 5:
                s = Card.rankAsString(cardRanks[1]) + " high straight";
                break;
            case 6:
                s = "flush";
                break;
            case 7:
                s = "full house " + Card.rankAsString(cardRanks[1]) + 
                    " over " + Card.rankAsString(cardRanks[2]);
                break;
            case 8:
                s = "four of a kind " + Card.rankAsString(cardRanks[1]);
                break;
            case 9:
                s = "straight flush " + Card.rankAsString(cardRanks[1]) + " high";
                break;
            default:
                s = "error in Hand.display: cardRanks[0] contains invalid value";
        }
        s = "                " + s;
        // moves the output over a little in the console 
        //so its easier to see when viewing the output
        System.out.println(s);
    }