Java programing , takes user input of a card return a description. ex ,input QS get Queen of Spades

preview_player
Показать описание
Write a program that takes user input describing a playing card in the following shorthand notations:

Your program should print the full description of the card. For example

Enter the card notation: QS

output display: Queen of Spades

Implement a class Card whose constructor takes the card notation string and whose getDescription method returns a description of the card. If the notation string is not in the correct format, the getDescription method should return the string "Unknown",
Рекомендации по теме
join shbcf.ru