Tuesday, January 17, 2012

Why won't this while loop ever end (Java)?

If you inspect the value of the string, you'll likely see something like "q\n" when you input q and then press enter. Try looking at only the first character of the string you're reading in.

0 comments:

Post a Comment