Can be viewed on HackMD here
Problem 1 – Models
[6 points] We need to add some model classes to represent a book and a cart entry in our bookstore. Write a Book class to hold the data shown on the search results page plus a unique id, and a CartEntry class that holds the data on the cart page. Since we don’t have a database yet, we’ll hard-code the available books and the entries that are in the cart. Add static variables called allBooks and allEntries to the Book and CartEntry classes, and use static initialization blocks to add entries to those lists.
Book.java:
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;