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
What is the difference between a switch statement and an if statement?
What does || || mean in math?
What is starvation?
Is map sorted in java?
What is the use of parseint in java?
Explain about fail safe iterators in java?
What do you mean by global variable?
How many bits is a 64 bit byte?
What are the advantages of assembly language?
What is a void in java?
Can an interface be final?
What is a jagged array in java?
How to sort array of 0 and 1 in java?
What is the default value of an object reference declared as an instance variable?
List the three steps for creating an object for a class?