So im trying to write a simple java program for college and I\'m a complete newbie at this java stuff. I keep getting an error when I compile, \"error - could not find symbo
You have declared all your variables as local variables inside the main
method, so they aren't in scope outside main
. To have them accessible to other methods, you can do one of the following:
static
class variables outside any methods, but inside the class.