ECE242 L3: Introduction to Stacks September 14, 2009
ECE 242 Data Structures
Lecture 3
Introduction to Stacks
ECE242 L3: Introduction to Stacks September 14, 2009
Overview °Techniques for storing large amounts of data
- Stacks – lots of examples in everyday life
- Easy to implement in Java
- Lots of fun applications
°Approaches for implementing stacks
- Array based implementation
°Use of interfaces in defining stack use
- Independent of stack implementation
- Defines all the important methods