Question
10.2 Write a program that implements a rudimentary book-finder service. It should start out by filling up a books ArrayList with Book objects. Then it
10.2
Write a program that implements a rudimentary book-finder service. It should start out by filling up a
books ArrayList with Book objects. Then it should ask the user if he/she wants to find a
particular book. Then it should search for the book in the books ArrayList and return the books
information if the book is found. Here is a suggested UML class diagram:
Implement BookStores fillTheStore method by adding anonymous objects representing
these two books:
Title Author ISBN
Siddhartha Hesse 11111
Lolita Nabokov 22222
Implement Bookstores getBook method so that if the book is not found, the method returns the string:
"Sorry - book not found."
Implement Books toString method simply by returning this string value:
title + " " + author + "" + isbn
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started