Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

error: cannot find symbol, help!

 
Glen Richard
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Report post to moderator


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
Posts: 105
IntelliJ IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Darryl Burke
Bartender
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Report post to moderator
I'm closing this thread as a duplicate of http://www.coderanch.com/t/606851/java/java/error-find-symbol
 
    Bookmark Topic Watch Topic
  • New Topic