public class A<B> {
public func() {
B b = new B();
}
}
I get this error hint from Netbeans:
unexpected type
required: class
found: type parameter B
where Bis a type-variable:
B extends Object declared in class A
How can I new a object of class B?