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
Which is better ascii or unicode?
What are different data structures in java?
Explain implementation and how is it different from conversion?
What is blank final variable?
What is style and indentation?
What is substring in java?
Why do we use regex?
What language is pass by reference?
What are the differences between the constructors and methods?
Variable of the boolean type is automatically initialized as?
Explain restrictions for using anonymous inner classes?
What does @param args mean in java?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
What is run time allocation?
What type of language is java?