15-100: Introductory/Intermediate Programming (Section F)
Fall 2006
Exercise    A
11/11/2006
String Lists 1
Due:  Tuesday, November 21
5pm
 (NOTE DIFFERENT DUE TIME)

Relevant Reading:

  • Readings on Arrays in Head First Java:
    • Pgs 17-19
    • Chapter 3, starting at page 59
    • Pg 83

Assignment:  (worth 10 exercise points)

Get the ex11-11-A.zip file.  Use the files in this folder as your basis for this assignment. 

In this project, you will find a StringList class and a StringListTester class. 

Sections of the StringListTester class are commented out.   Take out the comment sections one by one and get the program to work.  There are 6 built-in test cases for your pleasure.  You also have the option of entering your own test case.

To get the code to work, you will need to fill in methods in the StringList class.   If you have any questions about how any of these functions should work, ask.  

NOTES:

  • Get each section to work before moving on to the next one.
  • When asked to display a list of words, they should all be on one line, separated by commas.  There can also be a comma at the end of the line.  For additional practice, figure out how to NOT put a comma a the end of the last word.


Handin:
  • Be sure to read the general handin instructions on the exercises page.
  • Rename the folder containing all of the files to be "lastname-firstname-100SectionLetter-stringlists1".   For example, if I were in Section Z, I would rename my folder to be:  "McElfresh-Scott-100Z-stringlists1"  (without the quotes).   
  • Create a zip file of this folder, with the same name as the folder (except with the .zip ending this time). Instructions for zipping can be found in the system and software handouts linked on the main course page.
  • Submit this file via the electronic handin.  If you have problems, contact me.