Lab 7: Stacks

Due Date and Submission Requirements


The goal of this lab is:


Directions

Using Lab7Demo.java as a starting point, you will fill in the missing methods for the BookStack class.

Your Stack will hold Book objects, and must use an array to hold its data . This array must be able to dynamically grow if the array is at capacity. You are not allowed to use an ArrayList.
You must define the Book class and write the methods you think you will need. Each Book object has a title (String) and an author (String).

You are NOT allowed to modify the Lab7Demo class. After creating the BookStack class, you must define the following methods :

Starting Code

Output

When you run your program, your output should look exactly like this screenshot

Rules

Grading (10 points)