Question: task number 2 please. we are using ADT Bag. the first two pictures are for task 1. Thank you. public interface Pilelnterface k* Adds a



task number 2 please. we are using ADT Bag. the first two pictures are for task 1. Thank you.
public interface Pilelnterface k* Adds a new book to the pile of books @param book is the object to be added to pile public void addBook(T book); kx * Removes a book from the file * @return the top book from the pile public T removeBook0; * Gets reference to the top book of this pile kx *@return top book of the pile public T topBook0; *checks if is empty kx * areturn true if the pile contains no elements and false otherwise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
