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...
Type: Posts; User: xdega
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...
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.
...
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...
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...