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
What does snprintf return?
Can we have any code between try and catch blocks?
Define linked list and its features with signature?
What are heap memory and stack memory and what are memory tables.
What is a double vs float?
What does yield method of the thread class do?
What does jenkins do?
What is tree node in java?
how we can make a read-only class in java?
Is an object null?
What is an example of a conditional statement?
What is r * in math?
What do you mean by chromounits in java8?
In the below example, how many string objects are created?
How do you clear an arraylist in java?