Skip to content

Instantly share code, notes, and snippets.

@dsamarin
Created August 21, 2017 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsamarin/db524be6f46388fb0b3aad9651c4ee99 to your computer and use it in GitHub Desktop.
Save dsamarin/db524be6f46388fb0b3aad9651c4ee99 to your computer and use it in GitHub Desktop.
public class System {
private static final System mInstance = new System();
static {
java.lang.System.loadLibrary("mylib");
}
private System() {
construct();
}
public static System getInstance() { return mInstance; }
private native void construct();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment