All pastes #912760 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-02-21 16:37 UTC
rendered paste body
package game;

import java.util.Queue;

public class Hand {

    //properties
    private Queue<Card> hand;
    
    public Hand(){}
    
    //methods
    public void addCard(Card card){
        hand.add(card);
    }
    
    public Card removeCard(){
        return hand.poll();
    }
    
    public boolean isEmpty(){
        return this.hand.isEmpty();
    }
    
    public static void main(String args[]){
        Hand a = new Queue();
        Card b = new Card(14,2);
        Card c = new Card (5,1);
        System.out.print(a.isEmpty());
    }
}