Why does this work
public E a;
public MySortedArray(E asdf){
a = asdf;
}
and this doesn't?
public E[] a;
public MySortedArray(E[] asdf){
a = asdf;
}
How can I achieve the second when let's say I do
MySortedArray<Integer> test = new MySortedArray<>(integersArray);