CS 241: Java Provided Code for Lab 2


The following files are being provided:
o Lab2.java --- the driver (which is a very simple front-end to an inventory system is provided here

o DataRecord.java --- this is the DataRecord class for the B portion where all data is stored in main memory

o CS241Dictionary.java --- template for the CS241Dictionary class as well as the DictRecord class

o Input.java --- The input class that is used by Lab2.java

o SampleIO.java This demonstrates the use of file I/O in Java

o Terminal.java --- This is the provided terminal class to get input and output from a command line or from a file. Note that the provided driver demonstrates how a command line argument can be used to have the output go to a transcript file and/or the input read from a provided file

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