Lab 7: Stacks

Due Date and Submission Requirements


The goal of this lab is:


Directions

Using Lab7Demo.java as a starting point, you will define the StackArray class and fill in the missing methods for the stack data structure.

Your Stack will hold strings (you should NOT define another class, such as a Book class), and must use an array to hold its data . You can assume the stack will need to hold up to 10 elements.

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

Starting Code

Output

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

Grading (10 points)