{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lab5 - 15-121 FALL 2009[REID-MILLER LAB 5 For this lab you...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
15-121 FALL 2009 [REID-MILLER] LAB 5 For this lab, you will be using " pair programming ". You will need to find a partner to work with, and each of you will submit the same lab to blackboard. One person will write a method on the computer, while the other will review each line of code as it is entered and anticipate problems or improvements. You will switch roles for each method. In this lab, you will implement a ListStack class and then write two method for ListStack objects to test your ListStack class. EXERCISES Download the Stacks.zip project file discussed in lecture. 1. Create a new class named ListStack that uses a singly linked list to implement a stack. Your class should implement the LIFOStack interface so it must include all of the required methods specified by that interface in the project. Your class should throw the same exceptions as the ArrayStack class. Don't forget to write a toString method for the class.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}