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 are variable names?

970


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

1262


Can we sort hashset in java?

1087


what is the use of bean managed and container managed with example?

1969


What is e in java?

957


How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?

1056


How can you set an applet’s height and width as a percentage?

928


What's the difference between an abstract class and interface in java?

1027


How many threads does a core java have?

1061


If we don’t want some of the fields not to serialize how to do that?

1006


What are methods and how are they defined?

1204


What is the most important feature of java? What is an interface?

1009


What does java edition mean?

1134


What is an arraylist in java?

1070


What does nextint () do in java?

971