This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can i check if the input is the same as the hashmap key.

Tor Ludgivsen
Posts: 7
Java Python Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this library system where i got bookdata stored in a textfile. and person data stored in another text file.

- I need to check if String isbn =; is the same as the hashmap-bokm key (isbn) in class Bok.
The Bok bokm hashmap is made in another class that reads the file in.
Same with the Person personm which will later read in the data typed here.
What i am trying to do is to make an if test so that if isbn is in hashmap then


else errormessage and retry!

I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic