File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hash Map Values Compare with String

 
R Karthick
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 62
 
Rob Spoor
Sheriff
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic