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
How do you access command-line arguments within the code?
What is bytecode in java ?
What is the default execution method in java?
Does java map allow duplicates?
Explain public static void main(string args[]) in java.
How do you sort data in java?
What is empty list in java?
What are the advantages of exception handling?
what is heap memory?
Is arraylist an object in java?
what is function overloading in java?
Which package has light weight components?
How do you convert bytes to character in java?
how we can make a read-only class in java?
What are the states of thread in java?