Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

Identify and control your anxieties

Answered: 1 week ago

Question

Understanding and Addressing Anxiety

Answered: 1 week ago