Lab 8: Stacks

Due Date and Submission Requirements


The goal of this lab is:


Directions

Using Lab8Demo.java as a starting point, you will define the StackLinkedList 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 a linked list to hold its data . You will import java.util.LinkedList for your linked list data structure. Do not write your own linked list class.

You are NOT allowed to modify the Lab8Demo class. After creating the StackLinkedList 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)