4 ms·
Or even better, you can't use an array of generic types, which is just madness. Why even have a generic system if it's so half-baked. Yes you can use ArrayList
by vvanders 10y ago
Or even better, you can't use an array of generic types, which is just madness. Why even have a generic system if it's so half-baked.
Yes you can use ArrayList but you'd think that something as fundamental as an array would work with generics.
https://docs.oracle.com/javase/tutorial/java/generics/restrictions.html#createArrays https://docs.oracle.com/javase/tutorial/java/generics/restri...