Welcome to the world's shoddiest app to help out librarians.
It might even do that one day - but you'll have to debug it first.
Use your debugging techniques to flush out three common faults:
- A NullPointerException
- Reversed logic
- Faulty logic
and as a bonus, once it works:
- Eliminate unnecessary code