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
How to provide security in java
What is a parent class in java?
What is a singleton puppy?
How does arrays sort work in java?
What are the different types of multitasking?
List the different types of classloaders in java.
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
How many bits is a 64 bit byte?
java program with complete 4 oops concepts implemented example
How is hashset defined in java?
What is connection class in java?
What does method mean?
Which methods are used during serialization and deserialization process?
What is functional interface in javatpoint?
What is the difference between static method and instance method in Java?