It isn't ideal, but you can do this sort of thing:
import java.util.LinkedList;
public class Test
{
static class HashTable
{
public HashTable(int size)
{
LinkedList[] table = (LinkedList[])java.lang.reflect.Array.newInstance(LinkedList.class, size);
}
}
public static void main(String[] args)
{
HashTable table = new HashTable(23);
}
}