added a new arraylist to constuktor

This commit is contained in:
Tobydrama 2020-04-08 03:15:20 +02:00
parent 8d31dc3a84
commit 5424af57c3

View File

@ -10,6 +10,9 @@ import java.util.Random;
public abstract class Deck<T> implements IDeck<T> {
private final List<T> cardList;
public Deck (){
this.cardList=new ArrayList<>();
}
/**
* Initializes the deck with cards
* @param cardList list of cards