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
Fix any compile errors (if present)
Write some code to test the code you just compiled
Fix any logic errors
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
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop