I'm not sure why this code isn't working:
so we have a Card array :
Card[] hand = new Card[2];
Which contains two cards like:
hand[0]=new Card("King","Hearts");
hand[1]=new Card("Ace","Hearts");
however, when I try :
ArrayList<Card> deck = new ArrayList<Card>();
// other method here that fills the deck with 52 cards
then:
deck.remove(hand[0]);
deck.remove(hand[1]);
then the hand is not removed