The following code throws an ClassCastException:
ArrayList<V>[] table = (ArrayList<V>[]) new Object[tableSize];
How can I create an Array of ArrayList if this doesn't work?
EDIT:
To be shure everybody understands the problem. I need an Array that contains multiple ArrayLists.
EDIT2:
tableSize is an int.