I’m currently working on a holiday project aimed at simulating biological body clocks. The long & short of it is that I’ve decided to use a hash table as a “concentration” object to simulate a cell and its interacting units.
My main question is: is it possible to use the Java standard HashTable in such a way that it has a constant size? i.e. regardless of input (which will be appropriately limited) it doesn’t change.
Thanks in advance!
David
The constructor
HashTable(int)takes the initial capacity as a parameter. The default load factor is 0.75. Then: