aspose file tools*
The moose likes Beginning Java and the fly likes Error message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Error message" Watch "Error message" New topic
Author

Error message

Candie Duggan
Greenhorn

Joined: Mar 28, 2009
Posts: 9
I am down from 21 errors to 1 error. Keep getting an ; expected error message but when I put it in it creates more errors. Error is on line 162. Any help would be appreciated. Here's my code


Thank you in advance for the help.


Candie Duggan
Larry Frissell
Ranch Hand

Joined: May 16, 2008
Posts: 82
    
    2
Public MusicCDInventory() try public MusicCDInventory()
Candie Duggan
Greenhorn

Joined: Mar 28, 2009
Posts: 9
When I change the capital p to a lowercase p it tells me it is an illegal start of expression and gives me the 2nd error as ; expected. I am becoming totally confused on this.

Thank you for your help.
Garrett Rowe
Ranch Hand

Joined: Jan 17, 2006
Posts: 1296
Why is that line in there at all? First of all it's not valid Java syntax, and second of all you're attempting to call the constructor (I think) of MusicCDInventory from within the constructor of MusicCDInventory. I think you need to take a step back from the code, and consider what it is you're trying to do, and how all the pieces fit together.

One piece of advice I would give is don't try to code up your entire application, and then try to compile and debug it. Try more frequent compile schedule like:

  • Add a small bit of code
  • Compile
  • Fix any compile errors (if present)
  • Write some code to test the code you just compiled
  • Fix any logic errors
  • Repeat


  • When I say a small bit of code I literally mean no more than 3 - 5 lines.


    Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Error message
     
    Similar Threads
    Help with my logo
    Problem with cannot find symbol message
    Help understanding error messages
    Keep getting ioexception...please help
    Errors in GUI program