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 is the use of string and stringbuffer?
What is thread pool? How can we create thread pool in java?
What are the four versions of java?
What is sortedmap interface?
What is a databasemetadata?
How many types of flags are there?
What checkbox method allows you to tell if a checkbox is checked?
What are generic methods?
How will you get the platform dependent values like line separator, path separator, etc., ?
What is the purpose of void class?
Does java isempty check for null?
What does compareto () do in java?
Can a constructor call another constructor?
What is appletviewer?
Explain spliterator in java8?