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 / rajeev

Hash map is only the answer to solve this type of problem....
HashMap hs=new HashMap();
hs.lateral={"Ankit Arora","9897655434"};


like this we can store the number using hash map table.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find the largest value from the given array.

968


What does java final mean?

974


What is the use of 'super' keyword inside a constructor?

917


What are the advantages of passing this into a method instead of the current class object itself?

1626


What is the maximum length of a url?

894


Differentiate between a class and an object.

996


Can array grow dynamically in java?

922


What are generic methods?

920


What are static initalizers in java ?

968


What are access specifiers available in java?

976


What is e in java?

912


Explain what are final variable in java?

1027


What is a return in java?

988


What is defined as false sharing in the context of multithreading?

994


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

912