Go easy on yourself. The answer was likely hidden by your general confusion over objects. If you keep at it, SOON the fog will lift.
Type: Posts; User: GregBrannon
Go easy on yourself. The answer was likely hidden by your general confusion over objects. If you keep at it, SOON the fog will lift.
Use Card's getRank() method to get the card objects' values:
in cardSum = card1.getRank() + card2.getRank();
card1 and card2 are card objects, and in your program are probably kept in a Deck,...
1. As objects, instances of the Card class already have a value or should have. The basic Card attributes or characteristics are stored in the object's instance variables, including its value
...