Question: Write a java class called BookShelf the implies the following instrutions. Contains a character representing the first letter of the title of each book in

Write a java class called BookShelf the implies the following instrutions.
Contains a character representing the first letter of the title of each book in this shelf
Contains an ArrayList of Books. This should contain a maximum of eight books
Implements a default constructor and getter/setters for the above
Implements a void method that will add a Book to this shelf if the Book's title begins with the correct letter for the shelf. If the Book is not appropriate for this shelf, simply return
Implements a void method that will remove a Book from this shelf
Implements and overrides the ToString() method, which will print each Book title in the shelf on a single line. Each title should be separated by three spaces. If there are no books in the shelf, print Empty instead.

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!