File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

error: cannot find symbol, help!

Glen Richard

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


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

Joined: May 03, 2008
Posts: 5093

I'm closing this thread as a duplicate of

luck, db
There are no new questions, but there may be new answers.
I agree. Here's the link:
subject: error: cannot find symbol, help!
jQuery in Action, 3rd edition