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 are java annotations?

655


What is object-oriented paradigm?

625


Can an abstract class be a final class?

535


What are the different types of collections in java?

537


What is skeleton and stub?

596






What environment variables are required to be set on a machine in order to run Java programs?

628


describe method overloading

545


what is the difference between yielding and sleeping? : Java thread

529


What is collections framework?

588


Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?

613


Can a variable be local and static at the same time?

556


Is simpledateformat safe to use in the multithreaded program?

548


When do we need to use internal iteration? When do we need to use external iteration?

615


What is final variable?

511


Can we store variables in local blocks?

794