Question: Write a program intended to manage a library in Java . (Please give comments so that I can follow the answer) Your program should create

Write a program intended to manage a library in Java. (Please give comments so that I can follow the answer) Your program should create an interface for users to

perform a series of operations, and define the following classes:

Book:

You are responsible for this Class's design!

BookShelf:

Contains a character representing the first letter of the title of each book in this shelf

Contains an ArrayList (or Array if you so choose) of Books. This should contain a maximum of

eight books

Implements a default constructor and getter/setters for the above

Implements a method that will add a Book to this shelf IFF the Book's title begins with the

correct letter for the shelf

Implements a method that will remove a Book from this shelf

Implements a method that will remove duplicates of any Book from this shelf

Implements and overrides the ToString() method, which will print each Book title in the shelf

LibraryTester:

Contains only a main method that performs the following:

Create at least three different BookShelf's with different title letters

Tests all of the above features of each of these BookShelf's. You should call each method

you are required to write once and verify its correctness

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!