Hi, when I try to compille my code, an error message pops up that says "Cannot find symbol" - can someone PLEASE tell me what I am doing wrong? Here is the entire code:
* This class performs all of the printing for the DiskCase class.
* @author Kathryn Makin
* @version 2009 4 June
public class ListPrinter
private String printOwner;
private String printDiskLocation;
private String printDateStarted;
private int printDisksCaseCanHold;
private int printNumberOfDisksInCase;
* Constructor for objects of class ListPrinter
public ListPrinter(String owner, String DiskLocation, String date, int disks, int numberOfDisks)
I'm guessing the program is telling you it cannot find symbol "disks". From what I can see, the only place you declare "disks" is here:
I don't see anywhere that disks is declared outside that constructor, and I believe that means it only exists inside the constructor. And since you are calling a method, I'm assuming it should be an object of some kind.