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

What are the object and class classes used for?

569


In which language java is written?

546


Can I declare class as static or private?

550


What is a protected void?

512


What is callablestatement? How you can call stored procedure to pass in parameter?

549






Java Compiler is stored in JDK, JRE or JVM?

1054


what type of questions asked for barclays technologies pune please send urgent

5236


What is square root in java?

594


Explain the pointers in Java?

604


How do you define a set in java?

522


What are different types of references?

540


describe method overloading

545


What are the different types of inheritance in java?

537


What is assembly language?

556


What is the purpose of the System class?

585