I have a question, i have a code like below:
controller.start(c.class, 1);
but i want to set "c" from console. I can get/set it from args on main method . but how can i put it on c.class ? I mean how can i do that?
String a = "c";
controller.start(a.class,1);
Of course it doesnt work , but i hope i can tell u about my problem
On php we can use $$string to set/get string to variable, but i dont know how can we do it on Java ?
Class.forName(..).Class c = Class.forName(siteClass); controller.start(c, 1);its working , so thanks @SotiriosDelimanolis :))