When having the following code:
while (true) { }
Hitting CTRL+C will kill the loop and return back to the JShell.
But having a print statement inside the loop:
while (true) { System.out.println(1); }
Can't be killed. The weird thing is that replacing the 1 with a string (say "hello world"), then it *can* be killed.
Any clues?