Question: Java Help: This is part 2 of a 5 part question so 5 likes on offer. Part 1: https://www.chegg.com/homework-help/questions-and-answers/java-help-part-1-5-part-multithreading-question-5-likes-offer-part-2-https-wwwcheggcom-hom-q69755166 Part 3: https://www.chegg.com/homework-help/questions-and-answers/java-help-part-3-5-part-question-5-likes-offer-part-1-part-2-part-4-part-5-part-done-3rd-p-q69755184 Part 4: https://www.chegg.com/homework-help/questions-and-answers/java-help-part-4-5-part-question-5-likes-offer-part-1-part-2-part-3-part-5-part-done-4th-p-q69755207
Java Help: This is part 2 of a 5 part question so 5 likes on offer. Part 1:
https://www.chegg.com/homework-help/questions-and-answers/java-help-part-1-5-part-multithreading-question-5-likes-offer-part-2-https-wwwcheggcom-hom-q69755166
Part 3:
https://www.chegg.com/homework-help/questions-and-answers/java-help-part-3-5-part-question-5-likes-offer-part-1-part-2-part-4-part-5-part-done-3rd-p-q69755184
Part 4:
https://www.chegg.com/homework-help/questions-and-answers/java-help-part-4-5-part-question-5-likes-offer-part-1-part-2-part-3-part-5-part-done-4th-p-q69755207
Part 5:
https://www.chegg.com/homework-help/questions-and-answers/java-help-part-5-5-part-question-5-likes-offer-part-1-part-2-part-3-part-4-part-done-last--q69755214
This part should be done 2nd. Please use Book.java from part 1 solution.
Part 2: Bookstore.java
Then create a class called Bookstore. This class will have a private field that specifies its capacity of books e.g. 5 or 10 books. It will also have a private field that holds a list of books using an ArrayList. Bookstore should have a method isEmpty() that returns a boolean indicating whether the bookstore is currently empty, and a method isFull() that returns a boolean indicating whether the bookstore is currently full. Bookstore should also have an addBook() method to add a new Book to the list, and a takeBook() method to remove the first (oldest) Book in the list and return it to the caller. You should assume that a Customer will always buy the first available Book in the ArrayList.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
