the program ignores the first letter of all inputs
I'm not sure what reading from two different inputs will do.
Here's the console when I execute it:
Please enter the advertisement message to be displayed (enter 'n' to exit):
msg1 sent interrupt at Thu Apr 04 16:59:31 EDT 2013
Please enter the advertisement message to be displayed (enter 'n' to exit):
Interrupted at Thu Apr 04 16:59:32 EDT 2013
sent interrupt at Thu Apr 04 16:59:32 EDT 2013
Please enter the advertisement message to be displayed (enter 'n' to exit):
sent interrupt at Thu Apr 04 16:59:32 EDT 2013
Please enter the advertisement message to be displayed (enter 'n' to exit):
msg2 Interrupted at Thu Apr 04 16:59:32 EDT 2013
msg3 Interrupted at Thu Apr 04 16:59:32 EDT 2013
I used this in the main() method to execute with
System.setIn(new ByteArrayInputStream("msg1\nmsg2\nmsg3\nn\n".getBytes()));