Exercises
Exercise 1: Rewrite the class
Card
from the exercise in Questions and Exercises: Classes so that it represents the rank and suit of a card with enum types.
Answer 1: SeeCard3.java
,Suit.java
, andRank.java
.Exercise 2: Rewrite the
Deck
class.
Answer 2: SeeDeck3.java
.