|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object TestHash
public class TestHash
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 |
---|
public TestHash()
Method Detail |
---|
public static void main(java.lang.String[] args)
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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |