package com.logicbig.example.field;
import java.lang.reflect.Field;
public class SetDoubleExample {
private double myDouble;
public static void main(String... args) throws NoSuchFieldException, IllegalAccessException {
Field f = SetDoubleExample.class.getDeclaredField("myDouble");
SetDoubleExample instance = new SetDoubleExample();
f.setDouble(instance, 1.1d);
System.out.println(f.getDouble(instance));
}
}