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 are variable names?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
Can we sort hashset in java?
what is the use of bean managed and container managed with example?
What is e in java?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
How can you set an applet’s height and width as a percentage?
What's the difference between an abstract class and interface in java?
How many threads does a core java have?
If we don’t want some of the fields not to serialize how to do that?
What are methods and how are they defined?
What is the most important feature of java? What is an interface?
What does java edition mean?
What is an arraylist in java?
What does nextint () do in java?