public class PeerDemo { // load the native library static { System.loadLibrary("PeerLib"); } // driver public static void main(String args[]) { Peer p1 = new Peer(37); Peer p2 = new Peer(47); System.out.println("p1 value = " + p1.getValue()); System.out.println("p2 value = " + p2.getValue()); p1.destroy(); p2.destroy(); p1.destroy(); } }