Question: Java class question? How to add cards in an array - Constructor for a Deck class? Fields private Card[] cards; Constructor Deck details: public Deck(boolean
Java class question?
How to add cards in an array - Constructor for a Deck class?
Fields
private Card[] cards;
Constructor Deck details:
public Deck(boolean rand) - Sets whether cards are removed randomly from the deck or in order. Defaults to false, and Add the following cards to Deck in the order. Also sets whether cards are removed randomly from the deck or in the order. Default to false.
5 x Money Chines, Health 100, power 2
5 x Magic Dreams, Health 80, power 2
10 x Lock it link, Health 50, power 5
10 x Dragon riches, Health 40, power 7
15 x Big Red, Health 30, power 10
15 x Indian Princes, Health 15, power 10
40 x Eastern Trader, Health 5, power 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
