Keyboard input: Ctrl+C
Expected: ^C
Actual Output: :Exception in thread "main" java.util.NoSuchElementException: No line found
at java.base/java.util.Scanner.nextLine(Scanner.java:1651)
at Main.main(Main.java:32)
Note: Other inputs, Ctrl+V, Ctrl+Z etc will not throw the exception and will show as ^V, ^Z as per normal use of CLI.
This is an inconvenience to users that would like to eg copy a reflection question provided, but had not highlighted text yet.
Screenshot:
Keyboard input: Ctrl+C Expected: ^C Actual Output: :Exception in thread "main" java.util.NoSuchElementException: No line found at java.base/java.util.Scanner.nextLine(Scanner.java:1651) at Main.main(Main.java:32)
Note: Other inputs, Ctrl+V, Ctrl+Z etc will not throw the exception and will show as ^V, ^Z as per normal use of CLI.
This is an inconvenience to users that would like to eg copy a reflection question provided, but had not highlighted text yet.