你好! 我是一位尝试使用Java的C#开发人员。那么我该如何在Java中执行以下操作。
在C#中:
public T create_an_instance_of<T>(){
T instance = default (T);
// here's usually some factory to create the implementation
instance = some_factory.build<T>();
// or even..
instance = some_factory.build(typeOf(T) );
return instance;
}