0

How to create a phone book using hashmap?

27th Aug 2018, 4:39 PM
viki
viki - avatar
2 ответов
0
HashMap<long, name> phoneBook = new HashMap<long, name>(); long would be the key and name would be the value. I guess I would lookup values based on the phone number because they are unique where as names can repeat. my Java syntax might be off a little hope this helps.
29th Aug 2018, 2:47 AM
John
John - avatar
0
Okiee
29th Aug 2018, 5:52 AM
viki
viki - avatar