aspose file tools*
The moose likes Beginning Java and the fly likes error: cannot find symbol, help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

error: cannot find symbol, help!

Glen Richard
Greenhorn

Joined: Mar 08, 2013
Posts: 6


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!!!
Wayan Saryada
Ranch Hand

Joined: Feb 05, 2004
Posts: 105

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: 4642
    
    5

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: error: cannot find symbol, help!