Skip to content

Instantly share code, notes, and snippets.

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 alvaroReina/057cde37c379a2ba5aacd8ab42596121 to your computer and use it in GitHub Desktop.
Save alvaroReina/057cde37c379a2ba5aacd8ab42596121 to your computer and use it in GitHub Desktop.
Exit properly
Runtime.getRuntime().addShutdownHook(new Thread(){
@override
public void run(){
//close
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment