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.
Cheers.
Rodric MacOliverResearcherAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
So what problem are you having with that?
0
dpearsonCommented:
If you don't want to write it yourself you can use the Guava library from Google.  They have a map of lists:
http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/collect/ListMultimap.html

You can read about guava, download it etc. from here:
https://code.google.com/p/guava-libraries/

Doug
0
Tomas Helgi JohannssonCommented:
Hi!

Here are some examples to look at
http://java.dzone.com/articles/hashmap-%E2%80%93-single-key-and

Hope this helps.

Regards,
     Tomas Helgi
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.