[Instructions] [Search] [Current] [Syllabus] [Links] [Handouts] [Outlines] [Labs] [More Labs] [Assignments] [Quizzes] [Examples] [Book] [Tutorial] [API]
This laboratory is under development.
In this laboratory session, you will investigate a node-based implementation of stacks. You will begin by considering the basic operations (add, remove, peek). You will then implement a toString method to improve testing.
Required files:
Stack class seem to work the
way you expect?toString method to the NodeBasedStack class.ArrayBasedStack class using stubs for all
the methods.ArrayBasedStackTester class (which you should
base on NBSTester.java).ArrayBasedStack.toString method to your ArrayBasedStack
class.add method to your ArrayBasedStack
class.peek method.remove method.History
[Instructions] [Search] [Current] [Syllabus] [Links] [Handouts] [Outlines] [Labs] [More Labs] [Assignments] [Quizzes] [Examples] [Book] [Tutorial] [API]
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
This page may be found at http://www.math.grin.edu/~rebelsky/Courses/CS152/99S/Labs/stacks.html
Source text last modified Wed Apr 14 11:41:21 1999.
This page generated on Wed Apr 14 11:59:16 1999 by SiteWeaver. Validate this page's HTML.
Contact our webmaster at rebelsky@math.grin.edu