Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JAVA Using Linked Lists, design a Deck of Cards with the following criteria: 1. Define a Class Card that will store the face value of
JAVA
Using Linked Lists, design a Deck of Cards with the following criteria: 1. Define a Class Card that will store the face value of the Card and the Suit Value 1. Include five fields: Numeric Face Value for processing purposes String Face Value for printing purposes Numeric Suit Value for processing purposes String Suit Value for printing purposes Unique ID Card number of 1 to 52 (or 0 to 51) Next field to link to the next card. 2. Have the constructor initialize the next field to null. No data will be set within the constructor 3. Include a set and a get method for each of the following: String Face Value. String Suit Value. Numeric Face Value Numeric Suit Value. ID number of card Next field of card (pointer to the next card in deck) 2. Create a class for the Deck of Cards containing a set of operations that do the following: 1. Include the following fields Head node points to the first card in the deck. First node a temporary pointer that points to the first card in the deck Current node node that points to the current card when traveling through the deck of cards (the linked list). Previous node node that points to the previous card visited when traveling through the deck of cards (linked list)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started