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 can u increase the heap size in the memory?
What are facelets templates?
What is the difference between a synchronized method and a synchronized block?
What is a values collection view ?
I want to persist data of objects for later use. What’s the best approach to do so?
Is void a data type?
What restrictions are placed on method overloading in java programming?
What is the this keyword?
What is thread pool? How can we create thread pool in java?
How do I type unicode?
What carriage return means?
What is use of static method?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
What is parameter example?
what do you understand by synchronization? : Java thread