Class TestHash

java.lang.Object
  extended by TestHash

public class TestHash
extends java.lang.Object

This program tests some of the functionality of the HashTable class. It does not completely test the HashTable class. You should make sure that you do completely test your HashTable class, either by modifying this file or by writing a different driver.


Constructor Summary
TestHash()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main method to run the HashTable class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestHash

public TestHash()
Method Detail

main

public static void main(java.lang.String[] args)
Main method to run the HashTable class.

Parameters:
args - needs to have 6 values in the array:
[0] - is the number of items that will be hashed into the table.
[1] - the random number seed (integer)to use in generating values
[2] - maximum load factor to give the the HashTable class. Note it is a fractional amount (e.g., 0.45), not the percent.
[3] - the initial size of the hashtable to give to HashTable class.
[4] - maximum chain length to give the HashTable class. To indicate no maximum chain length, the value 0 will be given.
[5] - output file name used when calling the dump() or displayStats() methods.