that's the problem I'm having. I don't know how to initialize a type <T> array. Also, I don't know the size of the array. Is it possible to do?
Type: Posts; User: mia_tech
that's the problem I'm having. I don't know how to initialize a type <T> array. Also, I don't know the size of the array. Is it possible to do?
lets say I want to create a parameterized class
public class MySet<T extends Comparable> implements Set<T> {
T[] n;
MySet(T a)
{