0
How to create a phone book using hashmap?
2 Réponses
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.
0
Okiee