Author
error: cannot find symbol, help!
Glen Richard
Greenhorn
Joined: Mar 08, 2013
Posts: 6
posted Mar 08, 2013 21:22:46
0
I am running into the error of:
error: cannot find symbol
This is on each variable I have : mexicoPop, MexicoPopFin, usPop, Years
What have I done wrong? Such a beginner mistake I'm sure...
Also any critique on if this program is even gonna work will be great!!!
I Wayan Saryada
Ranch Hand
Joined: Feb 05, 2004
Posts: 83
posted Mar 08, 2013 23:34:03
0
Hi,
The error means that the variable can not be found in your code. You don't have these variables defined in your code: mexicoPopFin, usPop, mexicoPop and the Years variable is only available inside the if statement where it was declared.
Website: Learn Java by Examples
Darryl Burke
Bartender
Joined: May 03, 2008
Posts: 4167
posted Mar 09, 2013 01:17:51
0
I'm closing this thread as a duplicate of http://www.coderanch.com/t/606851/java/java/error-find-symbol
luck, db
There are no new questions, but there may be new answers.
subject: error: cannot find symbol, help!