It's not a secret anymore!
The moose likes Beginning Java and the fly likes can anybody tell about map in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "can anybody tell about map in java" Watch "can anybody tell about map in java" New topic

can anybody tell about map in java

vijayakumar durai
Ranch Hand

Joined: Aug 18, 2008
Posts: 153
can anybody tell about what is the use of map? how to create map in java?
if there is any tutorial give to me

thanks in advance
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

Map is an interface in java.util package. Map

Ananth Chellathurai [Walk on software]
rakesh sugirtharaj
Ranch Hand

Joined: Dec 16, 2007
Posts: 151
A Map, simply put, is like a telephone directory. You have the name(key) and number(value). When you want to search for a number(value) you look up the name(key). Makes sense?

Aniruddh Joshi
Ranch Hand

Joined: Jul 29, 2008
Posts: 275

you can read the javadoc here

"One of the best things you could do is to simplify a larger application into a smaller one by reducing its process and complexity - Fowler"
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45359
You need a trip to the Java Tutorials. There is a section about Maps in that part.
I agree. Here's the link:
subject: can anybody tell about map in java
It's not a secret anymore!