Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+ 2. List and describe four determinants of productivity.

Answered: 1 week ago