You created an application class named FullDeck that implemented a 52-element array that represented each card in
Question:
You created an application class named FullDeck that implemented a 52-element array that represented each card in a standard deck of playing cards. Now, create an enumeration that holds the four suits SPADES, HEARTS, DIAMONDS, and CLUBS. Save the enumeration in a file named Suit.java.
Modify the Card class to use the enumeration, and save the class as Card2.java. Modify the FullDeck application to use the new Card2 class, and save the application as FullDeck2.java
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: