The class Hashtable<K,V>
sets a self-implemrnted Hashtable as a list in the constructor. How can I instanziate all the needed Lists for additional Values per key right in the Constructor, so that all Table-Elements have their own List?
(The size of the table can vary)
public class Hashtable<K, V> {
public Hashtable(int size, int[] a) { // a: mathematical vector, represented as int[] for hash-function
table = (List<Pair<K, V>>[]) new List[size];
...
}
...
}