Hi All,
i have got class name dynamically in a string type, now need to create object of that class and call a method. please help:-(
i tried following code but its not working
String myclassName = textAgeList.item(0).getNodeValue().trim();
// Object myObject = Class.forName(myclassName).newInstance();
Class c= Class.forName(myclassName);
Object m=c.newInstance();
i have got class name dynamically in a string type, now need to create object of that class and call a method. please help:-(
i tried following code but its not working
String myclassName = textAgeList.item(0).getNodeValue().trim();
// Object myObject = Class.forName(myclassName).newInstance();
Class c= Class.forName(myclassName);
Object m=c.newInstance();