ArrayList Within HashMap

Hi folks, I'm trying to get an ArrayList within a HashMap in java to improve on an existing ChatBot.
The thing is that I want it to be able to answer a question and retrieve the word from the first contact and compare to the words in the HashMap, than the idea is for a loop make the questions within the ArrayList that is within that HashMap array be asked in order...

Any help with that would be much appreciated.
Rodric MacOliverResearcherAsked:
Who is Participating?
Tomas Helgi JohannssonCommented:

Here are some examples to look at

Hope this helps.

     Tomas Helgi
So what problem are you having with that?
If you don't want to write it yourself you can use the Guava library from Google.  They have a map of lists:

You can read about guava, download it etc. from here:

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.