Searching this only found answers in C++, which I know plenty well already, but how do I do this in Java? I found answers that suggest I need to do the following:
class FixedArray<T> {
public FixedArray(byte size) {
array = new T[size];
}
private T[] array;
}
... but I get the error
Type parameter 'T' cannot be instantiated directly