Greetings. I am trying to write a program that reads from standard input and echoes to the monitor only those lines that begin with "//". It is a prototype for a program which will print out the comments from a java source file. The problem is that the program is echoing everything I type and not just those lines beginning with "//". Here is my code. I must be missing something obvious, but I just can't see it.
Heavy Sigh I should make a rule for myself. Whenever I am about to post to a message board concerning a debugging problem, make sure I check for the extra semicolon first; I am aware of what can happen when this mistake occurs, not sure why I missed it.
Thanks for the quick reply.
Thank you my well lotioned goddess! Here, have my favorite tiny ad!