Search:

Type: Posts; User: curmudgeon

Search: Search took 0.07 seconds.

  1. Re: Lost in code problem- minor errors causing major problems

    That's not a NullPointerException but rather a NoSuchElementException usually thrown by a Scanner object, and that's a whole different issue!

    --- Update ---

    Use more debugging statements to see...
  2. Re: Lost in code problem- minor errors causing major problems

    Consider adding some debug lines in your code such as:



    System.out.println("partyByIndex: " + partyByIndex);
    SorcerersCave foo = caveMap.get(partyByIndex);
    ...
  3. Re: Lost in code problem- minor errors causing major problems

    Being elements in the game is not a reason for them to inherit the class. For inheritance to work, again the child classes need to be more specialized versions of the parent class. There's no way...
  4. Re: Lost in code problem- minor errors causing major problems

    You're trying to use a variable that holds a null reference on line 100 of SorcerersCave.java. You will want to check the variables on that line, find out which one is null, and look back into your...
Results 1 to 4 of 4