I have a private member which is an array of type generics and in my constructor I have a parameter that is to set the size of this array. How could I set my private array to the size specified by the constructor parameter?
This is what I have:
private T[] hashTable;
public HashTable(int initSize){
// set hashTable size here
}