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.