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 are the topics in advance java?
What are the types of methodology?
How many types of flags are there?
Is array passed by reference in java?
Why we do exception handling in java and how many types of exceptions are there?
What is overriding in java?
What is the file extension for java?
What is string array?
What is a file pointer?
What is difference between stringbuffer and string?
What is a Transient Object?
Is a boolean 1 bit?
What do you mean by byte code?
Can you explain the usages of class.forname()?
What does i ++ mean in Java?