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 / shahnawaz sheikh

Using HashMap.. can be one of the way.

HashMap hs = new HashMap();

hs.put("amit","989213232");
hs.put("john","989211422");
hs.put("Alex","989214578");

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java a security risk?

1051


Can we use a switch statement with strings?

1066


What is the significance of java packages?

1112


What do you understand by final value?

1070


What’s a deadlock?

1110


Is void a wrapper class?

955


How can we break singleton in java?

975


How can you traverse a linked list in java?

1142


What is class forname used for?

1057


What is mvc in java?

1022


What is JDBC Driver interface?How can you retrieve data from the ResultSet

2117


What is the difference between an object-oriented programming language and object-based programming language?

1021


What do you mean by platform independence of Java?

1163


How do you write a scanner class in java?

1028


What is a nonetype?

1135