Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
Exercises
Exercise 1: Rewrite the class
Card
from the exercise in Questions and Exercises: Creating 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
.
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
Copyright 1995-2005 Sun Microsystems, Inc. All rights reserved.