*In Java* Write a Java program that gives you the best possible hand. For instance, Program prompts User to inputs 5 or
Posted: Sun Jul 03, 2022 11:21 am
*In Java*Write a Java program that gives you the bestpossible hand.For instance, Program prompts User to inputs 5 or 3 cards on deck(for example - 10 spade, 9 spade, 8 spade), then program promptsuser to input what User has (for example - 7 spade, 6 spade),then it outputs the best possible hand, (In this case,Flush).Implement Wild card if possible.In other words, The program returns the rank of the best 5-cardhand from a list of 5 to 7 cards provided by User.
Please also state how you ran your program and outputs.
Please also state how you ran your program and outputs.