lets say I want to create a parameterized class
Code :public class MySet<T extends Comparable> implements Set<T> { T[] n; MySet(T a) { } }
is it possible to create an array of type <T> inside the class?
Printable View
lets say I want to create a parameterized class
Code :public class MySet<T extends Comparable> implements Set<T> { T[] n; MySet(T a) { } }
is it possible to create an array of type <T> inside the class?
What happens when you try?