I want to create an array like this:
public class Population<T> {
T[] a = new T[10];
}
However, the complier throws me this error:
Type parameter 'T' cannot be instantiated directly
Why does this happen, and what can I do to overcome this issue?