Search:

Type: Posts; User: denbal87

Search: Search took 0.23 seconds.

  1. Replies
    0
    Views
    83

    [SOLVED] Creating a poker deck

    I've created a poker deck for a video poker assignment, and it seems that every card is a King of Spades. I have an array of Card(s, v) obejcts theDeck[52]. I'm assuming that every card turns out to...
  2. Replies
    7
    Views
    110

    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!...
  3. Replies
    7
    Views
    110

    Re: nullpointerexception error

    Any idea why the addCard() method returns a null?
  4. Replies
    7
    Views
    110

    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...
  5. Replies
    7
    Views
    110

    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 5 of 5