Opus5.Demo2

Explanation

This demonstration program tests the following classes: StackAsArray, StackAsLinkedList, QueueAsArray, QueueAsLinkedList, DequeAsArray, and DequeAsLinkedList.

The source code for the main method is available here.

Instructions

This is a non-interactive program that creates several stacks, queues, and deques, performs various operations on those data structures, and prints the results.


Bruno
Copyright © 1999 by Bruno R. Preiss, P.Eng. All rights reserved.