Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. chrisxon

    Help with NullPointerException

    public class Deck { Card[] cards; int curCardIndex; public Deck() { int i = 0; cards = new Card[ Constants.NUM_CARDS_IN_DECK ]; curCardIndex = 0; //Loops to the amount of cards in a deck for(int iSuit = 0; iSuit < Constants.LAST_SUIT; ++iSuit) for(int iRank...
  2. chrisxon

    Help with NullPointerException

    I am having a difficulty with a piece of code, it is causing a nullpointerexception and its because my variable is being returned as null, help anyone? public void newGame() { this.theDeck = new Deck(); this.piles = new Pile[Constants.NUM_PILES]; Card tempCard2; for (int...

Part and Inventory Search

Back
Top