1//get an according class variable
2String className = "MyClass";
3Class<?> cls = Class.forName(className);
4
5//create instance of that class
6Object myInstance = cls.newInstance();
1//get an according class variable
2String className = "MyClass";
3Class<?> cls = Class.forName(className);
4
5//create instance of that class
6Object myInstance = scl.newInstance();