posted 14 years ago
It's been a while since I've been here. I'm working on my program to organize my CD collection, and the class I'm working on right now won't compile because of a 'cannot find symbol error.'
Here's the code. It takes in the various fields for each CD and then is supposed to print the list of entries, added to an array list:
Here's the code for the CD class, which sets the values for the four fields of each CD;
And here's the code for a new class I created called CDstart which contains the main method. Before, the main method contained all the code to input the information. I created this class after looking at the dot com game in chapter 6 of HFJ:
I managed to get all the other error messages fixed, and this is the only one that I keep getting:
CDInputTestDrive.java:105: cannot find symbol
symbol : method printout()
location: class java.util.ArrayList<CD>
CDRecord.printout();
I can't see what I'm doing wrong here. I tried changing it to CD.printout(), but the message is still the same. When I tried to compile CDstart.java, I got the same error message Can someone help me out? The answer, I think, is on the tip of my tounge, but I'm not getting it.
I'll kick myself if it's something elementary, which is quite possible because I've been away from programming for a bit. So my apologies an advance.