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 do you sort in descending order in java using collections sort?
How can we make copy of a java object?
What is tochararray in java?
What do you understand by overloading and overriding in java?
Name few java 8 annotations ?
What is the difference between form & report?
Difference between arraylist and hashset in java?
How can we make string upper case or lower case?
What is a 16 bit word?
Which list is sorted in java?
What is null statement?
Why do we declare a class static?
List some oops concepts in java?
Can we serialize arraylist in java?
How many threads can java run?