posted 6 years ago
I have a KeyboardInputs class which wraps the functionality of a Scanner reading from System.in.The thread in line 8 will block after the request is printed to screen until you write −999999999 because the nextXXX methods of Scanner are blocking methods. I am not sure, but I think that line 9 will print that I deserve 1000000000 cows because it is on a different thread.