how do you store phone numbers using java collections
Answer Posted / shahnawaz sheikh
Using HashMap.. can be one of the way.
HashMap hs = new HashMap();
hs.put("amit","989213232");
hs.put("john","989211422");
hs.put("Alex","989214578");
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
Is java a security risk?
Can we use a switch statement with strings?
What is the significance of java packages?
What do you understand by final value?
What’s a deadlock?
Is void a wrapper class?
How can we break singleton in java?
How can you traverse a linked list in java?
What is class forname used for?
What is mvc in java?
What is JDBC Driver interface?How can you retrieve data from the ResultSet
What is the difference between an object-oriented programming language and object-based programming language?
What do you mean by platform independence of Java?
How do you write a scanner class in java?
What is a nonetype?