how do you store phone numbers using java collections
Answer Posted / rajeev
Hash map is only the answer to solve this type of problem....
HashMap hs=new HashMap();
hs.lateral={"Ankit Arora","9897655434"};
like this we can store the number using hash map table.
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
How to find the largest value from the given array.
What does java final mean?
What is the use of 'super' keyword inside a constructor?
What are the advantages of passing this into a method instead of the current class object itself?
What is the maximum length of a url?
Differentiate between a class and an object.
Can array grow dynamically in java?
What are generic methods?
What are static initalizers in java ?
What are access specifiers available in java?
What is e in java?
Explain what are final variable in java?
What is a return in java?
What is defined as false sharing in the context of multithreading?
what is the difference between yielding and sleeping? : Java thread