assum have a
Class enum Suit{
CLUBS , DIAMONDS,SPADES,HEARTS;
}
Class enum Raml {
TWO,THREE,FOUR,FIVE,SIX,SEVEN,EIGHT,NINE,TEN, JACK,QUEEN,KING,ACE;
}
public class Card {
 Â
  private Suit suit;
  private Rank rank;
  public Card (Rank rank, Suit suit){
 Â
     this.suit = suit;
     this.rank = rank;
  }
  public Suit getSuit() {
     // TODO Auto-generated methodstub
     return suit;
  }
  public Rank getRank() {
     return rank;
  }
Class Hand{
given ArrayList cards;
public Hand(Card[] cards) creates a hand from the cards in thegiven array.
public Card playCard(int i): Removes and returns the card with thegiven index in cards.
   public boolean isSorted () return true if theelements of the cards are in sorted order.
---------------------Java------------------