| Author |
Hash Map Values Compare with String
|
R Karthick
Greenhorn
Joined: Feb 11, 2008
Posts: 11
|
|
Hi I just want to compare the hash map value with a string. but it is not working for me. Please Help It is always going to the else loop. i dont know why! While Printing those values Sysout((String) map.get("ID")); gives CHECKED Sysout(temp); gives CHECKED Kindly solve my problem. Thanks.
|
 |
Peter Lawrey
Ranch Hand
Joined: Dec 21, 2008
Posts: 62
|
|
cross-post http://forums.sun.com/thread.jspa?threadID=5357514&messageID=10557012
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
Please Be Forthright When Cross Posting To Other Sites. And like on in that link, once I fix the small compiler errors (especially the missing ) in the if) and replace Sysout with System.out.println, it prints True for me.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: Hash Map Values Compare with String
|
|
|