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!...
Type: Posts; User: denbal87
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!...
Any idea why the addCard() method returns a null?
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...
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...