package com.logicbig.example.field;
import java.lang.reflect.Field;
public class SetByteExample {
private byte myByte;
public static void main(String... args) throws NoSuchFieldException, IllegalAccessException {
Field f = SetByteExample.class.getDeclaredField("myByte");
SetByteExample instance = new SetByteExample();
byte b = 10;
f.setByte(instance, b);
System.out.println(f.getByte(instance));
}
}