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.
Card
Rewrite the Deck class.
Deck
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.
About Oracle | Oracle Technology Network | Terms of Service
Copyright © 1995, 2012 Oracle and/or its affiliates. All rights reserved.