The "-1" in this example is being read as a String.
Double quotes are for string representation, while single quotes are for character representation.
Type: Posts; User: cfmonster
The "-1" in this example is being read as a String.
Double quotes are for string representation, while single quotes are for character representation.
Thanks. I hadn't realized that there was a built in method for string comparison.
I've been messing around with this for a bit and cannot seem to code it so that it will work as intended. I'm trying to prompt the user for input repeatedly, until the user enters a -1, when the loop...