File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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: 11153
    
  16

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What am I doing wrong?
 
Similar Threads
Help! problem while using logic:iterate with HashMap
HashMap keys
Best way to "extend" or improve a bunch of objects
help, cannot find symbol - variable (using hashmaps)