class Teat02
import java.lang.reflect.Field;
public class Teat02 {
public static void main(String[] args) {
try {
Class<?> aClass = Class.forName("ReflectClass.Myclass");
Object o = aClass.newInstance();
Field sex = aClass.getDeclaredField("height");
sex.set(o,123.12);
Object o1 = sex.get(o);
System.out.println(o1);
} catch (ClassNotFoundException e) {
e.printStackTrace