I am currently working on a java project in which I must use the cards of a normal deck.
I would like to make a String Cards to hold the value of the different cards. I started with this.
String Card = "12345678910JQK"
I realized it was not the right way because the 10 is actually a 1 and then a 0 I am wondering if it is possible to make a String with number and letters.
In this case, since it's a finite number of things you want to represent, why not use an Enum with all the values for the cards?
Here you have some examples on enumaration, and it's explained with cards, it might be a good read:
https://howtoprogramwithjava.com/enums/