Search:

Type: Posts; User: denbal87

Search: Search took 0.07 seconds.

  1. Replies
    7
    Views
    1,590

    Re: nullpointerexception error

    Hmm I doubt it; I think the error must be in the deck class. All I have in the tester class is this:


    Game g = new Game();
    g.play();


    --- Update ---

    You're right!...
  2. Replies
    7
    Views
    1,590

    Re: nullpointerexception error

    Any idea why the addCard() method returns a null?
  3. Replies
    7
    Views
    1,590

    Re: nullpointerexception error

    I fixed this error, and now I get another one in these two classes:


    import java.util.Collections;
    public class Player
    {


    private ArrayList<Card> hand; // the player's cards
    // you...
  4. Replies
    7
    Views
    1,590

    nullpointerexception error

    I'm writing a java video poker game. When I run the test file, I get a nullpointexception error. It points to this line in my shuffling method
    theDeck[i] = theDeck[j]; I'm still a novice in...
Results 1 to 4 of 4