Question: In the Book Java Illuminated Third Edition Programming Exercise: You would modify the BookStore class in example 9.14 on pages 622 and 623 according to

In the Book Java Illuminated Third Edition

Programming Exercise:

You would modify the BookStore class in example 9.14 on pages 622 and 623 according to the following instructions:

Make sure to include the Book class, BookStore and BookSearchEngine class in your NetBeans project folder.

Modify the BookStore constructor so, when a BookStore object is created it is empty.

Implement a addBook( ) method that takes a Book object as a parameter and adds the book to the library.

Implement another version of addBook( ) method that takes, the title of the book, author and price as parameters and using the values in the parameters it creates a Book object and finally adds the book to the library.

Next modify the BookSearchEngine class that has a main( ) method as per the below instructions:

Create a BookStore object

Add any five books related to java or other programming languages to the BookStore.

Demonstrate use of both the versions of the addBook( ) methods.

Finally search for all the books that has java (treat the keyword as case-insensitive) and display the results of the search.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!