how do you store phone numbers using java collections

Answer Posted / sunny

We will have to assume that the names are going to be
unique. We may have a situation, that one number is common
for husband & wife or between friends etc. I mean, there is
a possibility, right? And normally you get the name of the
person and you have to find the phone number (I dont think
its going to be the other way round...in normal cases).
Then we need to have the name as the "Key", rather than
as "Value". Let me know, your thoughts on the same. Thanks.

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to provide security in java

1814


What is a parent class in java?

553


What is a singleton puppy?

543


How does arrays sort work in java?

616


What are the different types of multitasking?

668






List the different types of classloaders in java.

513


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

1670


How many bits is a 64 bit byte?

545


java program with complete 4 oops concepts implemented example

2735


How is hashset defined in java?

528


What is connection class in java?

521


What does method mean?

523


Which methods are used during serialization and deserialization process?

562


What is functional interface in javatpoint?

522


What is the difference between static method and instance method in Java?

581