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

What does snprintf return?

1007


Can we have any code between try and catch blocks?

990


Define linked list and its features with signature?

1005


What are heap memory and stack memory and what are memory tables.

990


What is a double vs float?

1018


What does yield method of the thread class do?

1039


What does jenkins do?

915


What is tree node in java?

967


how we can make a read-only class in java?

997


Is an object null?

980


What is an example of a conditional statement?

1056


What is r * in math?

1001


What do you mean by chromounits in java8?

957


In the below example, how many string objects are created?

1048


How do you clear an arraylist in java?

991