how do you store phone numbers using java collections

Answer Posted / ankur dhoot

Shahnawaz Sheikh---sorry to say but don't you think that ur
ans is having some flaw...u r correct that phone no can be
store in HasMap but u have taken name as key but name can be
repeated while ph no is unique so don't u think that phone
no should be key in upper hash map.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of protected in java?

626


Can a static class have a constructor?

608


What is the use of string and stringbuffer?

662


Why do we need wrapper classes?

678


What is the use of flag?

672






What invokes a thread's run() method in java programming?

670


What’s meant by anonymous class?

713


How do you sort arraylist in descending order?

648


Why heap memory is called heap?

670


What is t type java?

707


What are the 6 functions?

608


What is the difference between delete and delete[]

660


What is the difference between a scrollbar and a scrollpane?

660


How does java enable high performance?

807


Is null == null in java?

748