Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Help understanding error messages

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Post all of the code, please. It would make it a lot easier to help you.
 
author
Posts: 23919
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the whole code. The errors start at theMusicCDInventory.addMusicCD (theMusicCD);



Thank you again for your help.

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Yeah, but is it art? What do you think tiny ad?
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic