So I have a deck of cards, and each card I can get the number with a getNumber() method. I have strings for rules for each card number, like "default_ace" in strings.xml. Every time a card is drawn, I can parse everything correctly, but I need a way to set the text of a textView to the rule I have in strings.xml, depending on the card that is drawn.
String cardName = "default_" + card.getNumber().toString(); // makes the exact string name in strings.xml
This last line obviously does not work because "cardName" is not the name of a String Name in strings.xml. I want the value of the String cardName to be used.