我想以动态方式创建一个对象,我使用以下代码:
// Object technical name is xxxx.objectname
String[] ObjectNameArray;
ObjectNameArray = ObjectName.split(".");
// if the objectname is for exaple deleteme Java should intrpet the code
// as follows deleteme DeletebleObject = new deleteme(getContext());
ObjectNameArray[1] DeletebleObject = new ObjectNameArray[1](getContext());
这可能吗?以及如何做到这一点?
提前谢谢。