1. is it possible to put 2 values with 1 key into a HashMap? I know the regular put(k,v) won't do it..but I'm trying to override many functions to fit my needs and I can't figure out a way to do it.. let's say the key is a name and the value is a phone number..so I should have a bucket with few values in the case that there are few people with the same name.
i.e - John Smith-> 87523579,34537453
if that's not possible what other structure can I use to make that work?
2. if I have a BIG amount of different keys that I want to put in my HashMap, is there a way to make the map class more efficiant when it comes to functions like get,put,remove, etc?