Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how do you store phone numbers using java collections

Answer Posted / saikatk

Sorry,sunny i am not agree with your scenario that one
number is common for husband & wife or between friends
etc.It is not real life scenario, phone no. are always
register with single person name ,that might be possible two
or many persons have
name,if we use HashMap , the Key might be different than
name like empid or securityid or some unique parameter.
Thanks

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What best practices should you follow while writing multithreaded code in java?

1084


What is keyword auto for?

1198


What is keyword in oop?

962


What is difference between static class and singleton pattern?

1039


What is a string token?

1057


What is return null in java?

971


Explain constructors and types of constructors in java.

1121


What is an example of a boolean?

1077


What is the role of garbage collector in java?

977


What is the numeric promotion?

1035


Explain about features of local inner class?

1139


What is connection class in java?

968


Does a function need a return?

978


Explain purpose of sleep() method in java?

1132


What is meant by inheritance and what are its advantages?

1112