Question: Java return a String of cards that are contained in a Royal Flush poker hand. public String[] ranks = {2, 3, 4, 5, 6, 7,

Java return a String of cards that are contained in a Royal Flush poker hand.

public String[] ranks = {"2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King", "Ace"};

public String[] suits = {"Clubs", "Diamonds", "Hearts", "Spades"};

public String[] deck // initialize to size of 52 for the number of cards there are in a standard deck (NO JOKERS)

public String royalFlush(), return a String of cards that are contained in a Royal Flush poker hand. If you don't know what a Royal Flush consists of, you can give it a quick google search and you'll be able to figure it out. But the way I would like you to return it is all the cards on one line with a comma then a space in between each card.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!