I am able to access a class and its variables, but is there anyway in changing a user defined variable?
e.g:
Class c = Class.forName(theclassname);
Object o = c.newInstance();
theclassname t = (theclassname) o;
i can do
t.variable = 1;
but can i do
String v = "variable";
t.v = 1;
in any way?
C:\\A.txtis a file name not a class name....class!Class.getFieldandField.putetc.