I am trying to create a generic class in java like this
public class Cache <K,V> {
private Entry<K,V>[][] cache;
public Cache(int setCount, int arity){
this.cache = new Entry<K,V>[setCount][arity];
}
Now java tells me I can not declare a generic array? I know that in C I could just lay this out in memory. Does anyone know how this should be done in java?