Search:

Type: Posts; User: xdega

Search: Search took 0.09 seconds.

  1. Replies
    6
    Views
    2,249

    Re: Problem w/ Hashmap. Null Pointer?

    Think I may have nailed it! in the following line:

    return Collections.unmodifiableMap(mp);
    Instead of using the var mp (the var assigned to MAP), I tried the variable "question" (the var assigned...
  2. Replies
    6
    Views
    2,249

    Re: Problem w/ Hashmap. Null Pointer?

    this is the line where I am getting the exception

    System.out.println("Question1:" + QuizAnswers.getAnswer(0));
    it was a test line I added a while back to see if I could retrieve the values.
    ...
  3. Replies
    6
    Views
    2,249

    Re: Problem w/ Hashmap. Null Pointer?

    Also, I should probably state. I am aware that an Array would be a viable solution to my problem, but this is a school assignment and I want to push my studies a little.
    atm though, I am at a...
  4. Replies
    6
    Views
    2,249

    Problem w/ Hashmap. Null Pointer?

    So basically, I have written this class to define a hashmap, with a method to access the values.
    This is pretty explanatory, it is used as an answer key for a larger "quiz" program.
    Whenever I...
Results 1 to 4 of 4