what is the diffrence between map and map.entry in core java

what is the diffrence between map and map.entry in core java . where it will be use ful. any one give one example plz.
[125 byte] By [hi_bgrhari] at [2007-9-30 17:28:26]
# 1

A Map contains Map.Entry's

e.g.

Map map = new LinkedHashMap(8);

map.put(new Integer(1), "one");

map.put(new Integer(2), "two");

final Iterator iterator = map.entrySet().iterator();

while (iterator.hasNext()) {

Map.Entry entry = (Map.Entry) iterator.next();

System.out.println("key=" + entry.getKey() + ", value=" + entry.getValue());

}

Peter-Lawrey at 2007-7-6 13:51:19 > top of Java-index,Administration Tools,Sun Connection...