BlackJack Program, string value issue
问题 I'm in the midst of creating a BlackJack program. I'm currently in the "number checking" process. So once the cards have been dealt and the player asks for a "Hit" I need to check if the cards they have exceed, 21. I tried this : if(pCard1+pCard2+pCard3 > 21) System.out.println("Bust!"); But it soon came to my realization that because my card array is an array of strings, I cannot use mathematical operators to check wether or not the cards exceed 21. I was wondering if there was anyway to