| Author |
Map<String, Int> keyset not working
|
john price
Ranch Hand
Joined: Feb 24, 2011
Posts: 495
|
|
Since the keys are Strings, what is the problem? How do I fix this?
Thanks,
John Price
|
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
john price wrote:Since the keys are Strings, what is the problem? How do I fix this?
What the keys are has nothing to do with that error message, which simply says that you've tried to use a method which doesn't exist. You fix it by changing "keyset" to the name of a method which does exist. Check the API documentation for java.util.Map to find one.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56179
|
|
Hint: it has nothing to do with types.
{Bah! Beat by 30 seconds!}
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
john price
Ranch Hand
Joined: Feb 24, 2011
Posts: 495
|
|
Stupid me! Thank you!
For anyone who is wondering, it is keySet
John Price
|
 |
 |
I agree. Here's the link: jrebel
|
|
subject: Map<String, Int> keyset not working
|
|
|