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 object and class classes used for?
In which language java is written?
Can I declare class as static or private?
What is a protected void?
What is callablestatement? How you can call stored procedure to pass in parameter?
Java Compiler is stored in JDK, JRE or JVM?
what type of questions asked for barclays technologies pune please send urgent
What is square root in java?
Explain the pointers in Java?
How do you define a set in java?
What are different types of references?
describe method overloading
What are the different types of inheritance in java?
What is assembly language?
What is the purpose of the System class?