Hello i'm new to
java and am having trouble with an assignment. I am suppose to design a problem the prompts the user to enter a
String. Based on the input from the user, have the program prompt with a full description of the playing card entered. Below is a table of the notation and meaning:
Notation Meaning
A Ace
2...10 Card Values
J Jack
Q Queen
K King
D Diamonds
H Hearts
S Spades
C Clubs
Use the .charAt(...) to extract each character from the user's input and build a switch statement to determine the full description.
As of now, I have this. I do not think I am going down the right path with this and would appreciate any help you kind folks can give.
Edit: Also, having trouble keeping the tabs from my code. Some help with that would be nice too.