Then, I guess you can use a modest cascade of "if(){} else{}" statements to translate values to Strings so that you can print Ace, Jack, Queen and King as Strings instead of int values 1, 11, 12,...
Type: Posts; User: Zaphod_b
Then, I guess you can use a modest cascade of "if(){} else{}" statements to translate values to Strings so that you can print Ace, Jack, Queen and King as Strings instead of int values 1, 11, 12,...
So, for integer values 1, 2, ..., 13 you want to associate Strings with the values
"Ace" // 1
"Deuce" // 2
"Trey" // 3
"Four"
.
.
.
"Queen" // 12