{{theTime}}

Search This Blog

Total Pageviews

How to add shutdown hook control c in Java

// Attach shutdown handler to catch control-c
        Runtime.getRuntime().addShutdownHook(new Thread("control c shutdown--hook") {
            @Override
            public void run() {
                  //Save and close if any object state require persistence.
            }
        });

No comments:

Git checkout Flutter projects not able to run in Android Studio

Resolution: Set the Flutter SDK Path -  File>Settings(Ctrl+Alt+S). In 'Languages & Frameworks'> Run "Packages get&quo...