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

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

Step by Step Solution

3.41 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

enum Suit SPADES HEARTS DIAMONDS CLUBS public class Card2 private Suit suit private in... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming Questions!