I am trying to locate a key in a HashMap. I can print the selected key by using \'get\' but when I use \'containsKey\' in an if statement, it is not found.
I KNOW
In Location class, make sure you are overriding hashCode and equals methods.
If you are, can you post them?