8.5. Stacks¶
8.5.1. Objectives¶
Upon completion of this module, students will be able to:
Describe the Stack Abstract Data Type/Data Structure and the characteristics of a Stack
Implement Stacks in Java using an Array-Based or Linked-Chain approach
Develop and use Stack methods
Test the functionality of Stack
Evaluate a range of applications / use cases to determine if use of the Stack Data Structure is appropriate
8.5.1.1. Suggested Reading¶
Chapters 5 - 6 Bags from Data Structures and Abstractions with Java, 4th edition by Frank M. Carrano and Timothy Henry
8.5.2. Introduction to Stacks¶
8.5.2.1. [11:32] Introduction to Stacks Video¶
Try It Yourself
Download StackInterface.java (right-click to download as .java file), and open it in Eclipse.
Refer to 01.02: Lab: LightBot for Beginners if you need to review the instructions for downloading Eclipse projects.
8.5.3. Checkpoint 1¶
8.5.5. Checkpoint 2¶
8.5.7. Checkpoint 3¶
8.5.8. Stacks Array Implementation¶
8.5.9. Stacks Linked Chain Implementation¶
8.5.9.1. [12:50] Linked Chain Implementation Video¶
Video Slides 8.5.9.1-TestingStacks.pdf