You'll have to make a special case for A, where you assume A to always be the lowest value. The problem is that char sets numbers before letters when it compares them. So instead of just comparing...
Type: Posts; User: aussiemcgr
You'll have to make a special case for A, where you assume A to always be the lowest value. The problem is that char sets numbers before letters when it compares them. So instead of just comparing...
To convert 10 to a char?
char c = (char)10;
Notice anything significant about this:
The order of the suits is in alphabetical order. That makes it easy. You can compare chars using <, >, == since chars are effectively numerical values....