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
Why stringbuffer is faster than string?
What is anagram number?
What do you mean by jjs in java8?
how to convert Java project into Maven ?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
What are streams?
How do you invoke a method?
What is the difference between state-based unit testing and interaction-based unit testing?
How does java enable high performance?
What is re-factoring in software?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
What is the meaning of immutable regarding string?
What is double parsedouble in java?
What is an exception? difference between Checked and Unchecked exception in Java
What is fail fast in java?