Search:

Type: Posts; User: Demetrius82

Search: Search took 0.11 seconds.

  1. Replies
    4
    Views
    1,917

    Re: Null Pointer exception

    When I said I wanted to use the variables between methods I meant having a direction that the user inputs and then inside another method take that direction in order to know what to increase and...
  2. Replies
    4
    Views
    1,917

    Re: Null Pointer exception

    I did what you said, neither of those values are null, I set index to 0, and it printed 0, and item to "sword" and it printed sword. So the values I put in there are not null. Something weird did...
  3. Replies
    4
    Views
    1,917

    Null Pointer exception

    Hey guys, I am a noob to java, and I am so confused at this point in my code that I had to come here. I for some reason am getting a nullpointerException when trying to add something to my arraylist...
Results 1 to 3 of 3