Runtime rt = Runtime.getRuntime();
rt.addShutdownHook(new Thread() {
public void run() {
// .... your code ....
}
});
“Complexity kills. It sucks the life out of developers, it makes products difficult to plan, build and test, it introduces security challenges, and it causes end-user and administrator frustration.”
(Ray Ozzie)
Runtime rt = Runtime.getRuntime();
rt.addShutdownHook(new Thread() {
public void run() {
// .... your code ....
}
});
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.