Lab 4: Searching a Word List

Due Date: midnight Wednesday, October 2, 2002


Background:

This lab will provide you with another opportunity to work with classes and objects as well as a new class: the ArrayList. Once you're done, you will use the Intro-CS Assignment Dropoff form to hand in your finished program.


What You'll Need

Download the lab4.zip file from the 15-111 course web site. Unzip the file and you should see the following:


Assignment

You are to implement a set of classes that stores a searchable list of words. By the end of the course, I hope to have you implementing a word game like Scrabble or TextTwist. A sample execution of the current assignment will be shown in lecture on Thursday. The functional specifications are as follows:

Think about your class design before coding your solution. Start with the Word class and test it out with respect to checking anagrams before going on to the WordList class. Remember that ArrayLists store generic Objects and so, when you access an item from an ArrayList, it will have to be downcast to a Word.


Handing in your Solution

Your solution should be in the form of a .zip file. When we grade your solution we will unzip the folder and execute the Java files.

Use the Intro Programming dropoff form to submit your zip file.