This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes What am I doing wrong? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What am I doing wrong?" Watch "What am I doing wrong?" New topic
Author

What am I doing wrong?

Stefanos Madagaskaris
Greenhorn

Joined: Sep 09, 2008
Posts: 3


I get an error in line (theHash.put("North", numSetNorth3);

What am I doing wrong?
Thank you.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11653
    
  17

what is the error?


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Stefanos Madagaskaris
Greenhorn

Joined: Sep 09, 2008
Posts: 3
The operator that you use here cannot be used for the type of value that you are using it for.
You are either using the wrong type here, or the wrong operator.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

HINT:
Is 'numSetNorth3' the of same type as 'theHash' is set up??
[ September 09, 2008: Message edited by: Rene Larsen ]

Regards, Rene Larsen
Dropbox Invite
 
 
subject: What am I doing wrong?