believe me that is the error.
public class Player {
private ArrayList<Card> hand; // points to null
public Player {
ArrayList<Card> hand = new...
Type: Posts; User: dicdic
believe me that is the error.
public class Player {
private ArrayList<Card> hand; // points to null
public Player {
ArrayList<Card> hand = new...
because it points to a null. instance hand and local variable hand in your constructor are not the same. please check
I believe that the error is in you main method. in PokerTest.java
you have this instance private Card[] theDeck;
that statement is similar to private Card[] theDeck = null; a null pointer.
array in java is an Object, and if not equate to array object or make a...