Is there a way to interupt a java program while running(No Command line keys like Ctrl-C).
For Example I executed a program which runs an infinite loop printing "hello" and the only condition to stop is to press a key "E" but I do not want loop to pause waiting for the user to press the key.
I hope you can understand what i want.