how do you store phone numbers using java collections

Answer Posted / ankur dhoot

Shahnawaz Sheikh---sorry to say but don't you think that ur
ans is having some flaw...u r correct that phone no can be
store in HasMap but u have taken name as key but name can be
repeated while ph no is unique so don't u think that phone
no should be key in upper hash map.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????

1795


How to sort a collection of custom Objects in Java?

594


How do you replace all in word?

522


Explain method overloading?

569


What does exclamation mean in java?

571






what is recursion in java

596


What are thread groups?

568


What is static keyword?

589


what is meant by HQL?

639


How do you generate random numbers in java?

512


What is the main difference between java platform and other platforms?

506


What is boolean law?

514


what do you understand by synchronization? : Java thread

547


What is called module?

561


what is session in java?

744