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 is the use of string and stringbuffer?

938


What is thread pool? How can we create thread pool in java?

1015


What are the four versions of java?

967


What is sortedmap interface?

941


What is a databasemetadata?

901


How many types of flags are there?

957


What checkbox method allows you to tell if a checkbox is checked?

948


What are generic methods?

915


How will you get the platform dependent values like line separator, path separator, etc., ?

957


What is the purpose of void class?

1000


Does java isempty check for null?

947


What does compareto () do in java?

949


Can a constructor call another constructor?

924


What is appletviewer?

986


Explain spliterator in java8?

1007