A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
what does entrySet return??
Joined: Jul 31, 2008
Sep 25, 2008 15:04:00
it returns a set.
so does it contain both the 'key' and 'value' in case of hashmap??
Joined: Mar 10, 2008
Sep 25, 2008 15:30:00
If you take a look at the API documentation for the
it should be pretty obvious what exactly is returned.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
author & internet detective
Joined: May 26, 2003
Sep 25, 2008 15:31:00
Yes. The JavaDoc for Java 5+ shows this a bit more clearly. It says the return type is:
This is a Set of Entry objects. The Entry class is defined within Map and has the key/value pairs.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: what does entrySet return??
Barn Burning Patterns
Jboss in Action question: migration from other Application Servers
WA #2 ..... word association
Need help understanding generics.
How low level do YOU code ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014