Saturday, August 13, 2011

JAVA cannot find symbol error. I'm stuck! :(?

You declare the variable projectileSelection inside the do..while loop, so it does not exist outside those braces {}, so it cannot be used in the while portion of the while loop. Declare the variable BEFORE you put the "do" part.

No comments:

Post a Comment