Earlier in Lesson A9, Recursion, the concept of a stack was introduced. A stack is a linear data structure with well-defined insertion and deletion routines. Data is both placed and taken from the ‘top’ of the stack. Queues are very similar to stacks, except that Queues remove data from the front while adding data at the end.
The key topics for this lesson are:
- Stacks
- The Java Stack Class
- Queues
- The Java Queue Interface
|