Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (loop == true) {
- Scanner s = new Scanner(System.in);
- String a = s.nextLine();
- String in = a;
- info("User input: " + in, "DEBUG", 0);
- if (in == "kill") {
- info("Are you sure you would like to kill the running instance? [Y/N]", "CONSOLE", 0);
- if (in == "Y" || in == "y") {
- info("Starting KILL method.", "CONSOLE", 0);
- s.close();
- loop = false
- } else if (in == "N" || in == "n") {
- info("Cancelled.", "CONSOLE", 0);
- } else {
- info("Illegal arguements given. Cancelled.", "CONSOLE", 0);
- }
- } else {
- info("Illegal Arguements given.", "CONSOLE", 0);
- }
- }
- [info @ DEBUG/0]> User input: kill
- [info @ CONSOLE/0]> Illegal Arguements given.
Add Comment
Please, Sign In to add comment