Thread: Help Please
View Single Post
  #4 (permalink)  
Old 08-03-2007, 11:32 AM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,222
hardwired is on a distinguished road
Code:
CDInventoryProgram.java:265: class Inventory is public, should be declared in a file named Inventory.java public class Inventory ^
Looks like the file name is "CDInventoryProgram". You may have only one outer class in the file with the public modifier and this class must have the same name as the file name and will also be the class with the main method. So if the file name is really "CDInventoryProgram" then either change the file name to "Inventory" or remove the public modifier from the Inventory class signature and remove the main method from it.
Reply With Quote