Write a class named PokerHand that will represent a set of 5 playing cards store
ID: 3640090 • Letter: W
Question
Write a class named PokerHand that will represent a set of 5 playing cards stored as an array of integers (cards are represented as the numbers 1 through 52). In addition to a constructor, your class should contain the following methods:public boolean haveCard(int card)
- will return true if the card is in the hand
public void displayCards( )
- will display the 5 cards (display as integers is OK)
public void dealCards( )
- will populate the array with a random set of cards
- the cards must be unique(i.e., no duplicate cards)
- hint: use the haveCard method to determine if the card is unique