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

Help understanding error messages

 
Candie Duggan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I try to compile my code it comes back with 21 errors, there are two errors repeated throughout 1) cannot find symbol symbol : method 2) cannot find symbol symbol : variable

error 1 is the .

error 2 is the M at the very beginning

I don't know if you need the whole code to help with this problem of not, it is a long code.

I am new at this and am not sure if I have given enough information to get help.

THANK YOU in advance for your help.
 
Eric Larsen
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post all of the code, please. It would make it a lot easier to help you.
 
Henry Wong
author
Marshal
Pie
Posts: 21126
78
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I try to compile my code it comes back with 21 errors, there are two errors repeated throughout 1) cannot find symbol symbol : method 2) cannot find symbol symbol : variable ...



Also, when you get that many errors, you should target to fix only the first few. And then recompile. It is likely that the 21st error is an artifact of the eariler errors, and not a true error.

Henry
 
Candie Duggan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the whole code. The errors start at theMusicCDInventory.addMusicCD (theMusicCD);



Thank you again for your help.

 
Moojid Hamid
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
before you do



you have to declare



or you can combine both steps and do


 
Moojid Hamid
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I see it now MusicCDInventoryValueLabel is supposed to be entireMusicCDInventoryValueLabel.

 
Candie Duggan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I fixed the entireMusicCDInventoryValue errors but I'm still getting 16 errors. They are all pretty much the same, cannot find symbol.

Thank you again for the help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic