It's not a secret anymore!
The moose likes Beginning Java and the fly likes hashmaps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic


Eli Smies

Joined: Oct 17, 2011
Posts: 2
Hey guys, I was wondering, I have to write a code for a HashMap that maps two words to essentially one meaning. For example, I have to make sure that if someone types crash, it will generate the same response as crashes, how would I map these two together?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

Please do not post the same question more than once.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: hashmaps
It's not a secret anymore!