Course Solutions Uncategorized (Solved) : Need Help Classes Please Upvote Student 101047681 Deck Class Import Javautillist Finish Co Q30403815 . . . .

(Solved) : Need Help Classes Please Upvote Student 101047681 Deck Class Import Javautillist Finish Co Q30403815 . . . .

 

Need help with these classes please! will upvote!

Student # 101047681

Deck Class:

import java.util.List;

/* finish all of the constructors and methods given here */

/* do NOT add any public attributes or methods */

/* add any protected/private attributes you need */

public class Deck{

public Deck(){}

public Deck(int nun_jokers){}

public List<Card> getCards(int num_cards){returnnull;}

public Card getCard(){return null;}

public void addCard(Card c){}

}

Hand class:

import java.util.List;

public class Hand{
protected List<Card> cards;
  
public Hand(List<Card> cards){
this.cards = cards;
}
  
public int numberOfCards(){
if( this.cards == null ){
return -1;
}else{
return this.cards.size();
}
}
  
public List<Card> getCards(){ return this.cards; }
  
/* remove and return the specified card from the hand */
/* return null if the card is not in the hand */
public Card

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post