Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

**Please write in Java!!** Here are the minimum requirements for your card game: You must have a Card class with the minimum below: Each card

image text in transcribed

**Please write in Java!!**

Here are the minimum requirements for your card game: You must have a Card class with the minimum below: Each card object must have a (String) suit, (String) rank, and a (int) point Value Must provide accessor methods for each of these class variables Must have an equals method to compare if the current card and another card are the same Must have a toString method that prints the current card displaying its attributes You must also have a Deck class with the following minimum: Import statements: import java.util.List; import java.util.ArrayList; Class variables that consist of an ArrayList of Cards and also a size (int) variable Constructor that takes in three arrays for each of the Card attributes and fills up the arraylist with the newly created Card objects Constructor should set the initial size of the deck and call a method to shuffle the deck Additional methods o isEmpty() to check to see if the deck is empty (no undealt cards) o size() method to access the number of undealt cards o shuffle() method to randomize the collection of cards

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions

Question

Help with this question

Answered: 1 week ago