package listadt; import bookutil.Book; import listadt.BookListADT; import listadt.BookListADTEmptyNode; import listadt.BookListADTNode; /** * This class implements the List of Books ADT */ public class BookListADTImpl implements BookListADT { private BookListADTNode head; public BookListADTImpl() { head = new BookListADTEmptyNode(); } @Override public void addFront(Book b) { head = head.addFront(b); } @Override public void addBack(Book b) { head = head.addBack(b); } @Override public void add(int index, Book b) { head = head.add(index,b); } @Override public int getSize() { return head.count(); } @Override public void remove(Book b) { head = head.remove(b); } @Override public Book get(int index) throws IllegalArgumentException{ if ((index>=0) && (index