/**
* @author Administrator
*
* TODO To change the template for this generated type comment go to Window -
* Preferences - Java - Code Style - Code Templates
*/
public class Testa {
public static Object abcd(String myClass) throws Exception {
Class m = Class.forName(myClass);
Object o = m.newInstance();
return o;
}
public static void main(String[] args){
MyTestApp my = null;
try {
my = (MyTestApp)abcd("RTTILence.MyTestApp");
} catch (Exception e) {
e.printStackTrace();
}
my.send();