filmov
tv
Java programming , input card notation and display card description with switch .QS =Queen of Spades

Показать описание
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",
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",