I am having trouble with coding for three of a kind and flush. So what I am stuck on is implementing a hand as an ArrayList of Card objects so that I can add
cards to it at run-time using the dealCard() method in DeckOfCards. And then I have to do these two methods in the DeckOfCardsTest file:
static boolean isThreeOfKind( ArrayList<Card> hand )
//A hand is a 3OAK if 3 of the
cards have the same face, and the other two do not. Additionally, the other two cards may not be the same face as each other.
static boolean isFlush( ArrayList<Card> hand )
//A hand is a Flush if all of the cards are the same suit.
Thank you for any suggestions or help in advance!
/**************************************************************************
*******************************************************************