public class Test { static { System.loadLibrary("banditworld_java"); } public static void main(String args[]) { BanditWorld bw = new BanditWorld(); bw.make_MDP(1234, 20000, 100); Reward r = new Reward(); State s = new State(); bw.act(2, s, r); System.out.println("State = " + s.getValue() + ", Reward = " + r.getValue()); System.out.println(bw.successor(1)); bw.close_MDP(); } }