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.
Rewrite the Deck class.
Check your answers.
Problems with the examples? Try Compiling and Running
the Examples: FAQs.
Complaints? Compliments? Suggestions? Give
us your feedback.
Your use of this page and all the material on pages under "The Java Tutorials" banner
is subject to these legal notices.
Copyright © 1995, 2012 Oracle and/or its affiliates. All rights reserved.