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

Which is better ascii or unicode?

1039


What are different data structures in java?

1086


Explain implementation and how is it different from conversion?

1128


What is blank final variable?

1114


What is style and indentation?

1055


What is substring in java?

1299


Why do we use regex?

1076


What language is pass by reference?

1067


What are the differences between the constructors and methods?

1178


Variable of the boolean type is automatically initialized as?

1049


Explain restrictions for using anonymous inner classes?

1139


What does @param args mean in java?

1113


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

1135


What is run time allocation?

1077


What type of language is java?

1039