CS 241: Java Provided Code for Lab 2



Here is a single file that contains all of the files described below. Just save it and then unzip it (use WinZip on the PCs, unzip in unix, and an standard unzip program on other platforms).

o java-lab2-all.zip


The following files are being provided:
o Terminal.java --- This is a revision of the Terminal class provided with lab 1.

o Inventory.java This is the main program that will use the dictionary ADT

o DataRecord.java This implements the methods to access the data

o hash.java Here's the hash function you are to use

o fileEx.java This demonstrates the use of the provided read and write methods in DataRecord

o hash-test The test data for the portion besides load/save

o hash-test-part2 Additional test data for those doing load/save


Return to the CS 241 Home Page