Search:

Type: Posts; User: angstrem

Search: Search took 0.12 seconds.

  1. Re: When I run my program, it says error: java.lang.NullPointerException

    That's a bad thing that you can't quickly change your implementation: this means, that your code is not flexible.
    "Out of boundary" is too trivial error, try finding it yourself. Just remember, that...
  2. Re: When I run my program, it says error: java.lang.NullPointerException

    Your generationNextCalc method. Try to trace the life of a cell (from the beginning of the method) throughout the loops. Then reason, what changed on your field.
    Also, your cells have only 2 states....
  3. Re: When I run my program, it says error: java.lang.NullPointerException

    The very same NullPointerException, I guess, with the very same array. Java's multidimensional array is just an array of references to other arrays. So, if one dimension is initialized, that does not...
  4. Re: When I run my program, it says error: java.lang.NullPointerException

    I see the calculations. I mean, what is created after this operation? What object? What it consists of?
  5. Re: When I run my program, it says error: java.lang.NullPointerException

    Can you explain in details what happened when you wrote Cell[][] cells = new Cell[lnr.getLineNumber()+2][]; - in your opinion?
Results 1 to 5 of 5