Use the ICard
isBlack
that returns public boolean isRead(ICard card){ ... }
isPair
, a function that returns true
if its two ICard parameters represent a pair and false
otherwise.public boolean isPair(ICard first, ICard second){ ... }
isStraight
that returns true
if the hand contains a straight and false
if it doesn't.public boolean isStraight(ICard[] hand){ ... }
getRank()
value. (So: 11, 12, and 13 respectively.) Write the handTotal
function that returns the total value of a hand.public int handTotal(ICard[] hand){ ... }