I'm not sure what reading from two different inputs will do.
System.in.read();
Here's the console when I execute it:
I used this in the main() method to execute with
...
Type: Posts; User: Norm
I'm not sure what reading from two different inputs will do.
System.in.read();
Here's the console when I execute it:
I used this in the main() method to execute with
...
Can you post the current version that shows the println() statements.
Please explain what the problem is now?
Does the code execute the call to the interrupt() method? Add a println that prints a message to see.
The code should use the equals() method to compare Strings, not the == operator.
Please edit your post and wrap your code with code tags:
<YOUR CODE HERE>
to get highlighting and preserve formatting.