Search:

Type: Posts; User: dicdic

Search: Search took 0.14 seconds.

  1. Replies
    7
    Views
    1,598

    Re: nullpointerexception error

    believe me that is the error.


    public class Player {

    private ArrayList<Card> hand; // points to null

    public Player {
    ArrayList<Card> hand = new...
  2. Replies
    7
    Views
    1,598

    Re: nullpointerexception error

    because it points to a null. instance hand and local variable hand in your constructor are not the same. please check
  3. Replies
    7
    Views
    1,598

    Re: nullpointerexception error

    I believe that the error is in you main method. in PokerTest.java
  4. Replies
    7
    Views
    1,598

    Re: nullpointerexception error

    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...
Results 1 to 4 of 4