I'm working on a medical database program that uses a hash table that I create using the line
ArrayList<Integer[]> hashTable = new ArrayList<>(TABLE_SIZE);
TABLE_SIZE is set to 57 and I want to essentially have an ArrayList
of 57(or less) arrays corresponding to hashCode
generated from symptoms. My final output would be something like
files containing the flu are 1,4,10,27
I know that putting/ leaving TABLE_SIZE where it is now will result in it just containing 57 not setting an actual size. How would I go about setting a size in a container like this?
I have restrictions that don't allow me to use things like java.util.HashTable
and the like. The only latitude I've been given is that I may use ArrayList
s.
Any help would well...help.