package com.logicbig.example.field;
import java.lang.reflect.Field;
public class SetLongExample {
private long myLong;
public static void main(String... args) throws NoSuchFieldException, IllegalAccessException {
Field f = SetLongExample.class.getDeclaredField("myLong");
SetLongExample instance = new SetLongExample();
f.setLong(instance, 15L);
System.out.println(f.getLong(instance));
}
}