How can I remove a card from an array in poker? Everything I've seen so far uses the "remove" method, but I am working with arrays and am not allowed to use that.
Here is my code so far:
private String name;
private int wins;
private Card[] hand;
private int cardsInHand;
public Player(String newName){
name = newName;
wins = 0;
hand = new Card[5]
cardsInHand = 0;
}
public void removeCard(Card cardToRemove){
}