Lab
Lab 10 pts
Ask students to write a isGreater method for the card class, and add necessary
statements to the main method to test the greaterThan method. The method header
should be:
public boolean isGreater(Card a)
You want it to return whether or not the given card is greater than your card.
Download the
Card class
.
Students can download this class from the above link. (They should have already done this, since we have been
discussing this class in lecture for over a week. If they don't have it, you
may want to gently advise them that they should be studying!)