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
Explain the difference between abstract class and interface in java?
What is a method header?
Explain the concept of proper inheritance?
Can a hashset contain duplicates java?
What is covariant return type?
How does hashset work in java?
what is mena by object block any what is the use of that
What does you mean in math?
Can you give names of Container classes?
What is the functionability stubs and skeletons?
What are the steps that are followed when two computers connect through tcp?
Are registers volatile?
What is internal iteration in java se 8?
What is stringwriter?
How do you escape sequences in java?