Skip to content

Instantly share code, notes, and snippets.

@itang
Created July 12, 2011 10:06
Show Gist options
  • Save itang/1077718 to your computer and use it in GitHub Desktop.
Save itang/1077718 to your computer and use it in GitHub Desktop.
Runtime.getRuntime.addShutdownHook(new Thread{ override def run = println("exit!!!") })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment