Results 1 to 3 of 3

Thread: Help Please

  1. #1
    jamesr2b is offline Member
    Join Date
    Jul 2007
    Posts
    9
    Rep Power
    0

    Default Help Please

    Line 265: public class Inventory



    { // begin class Inventory



    CDInventoryProgram.java:265: class Inventory is public, should be declared in a
    file named Inventory.java
    public class Inventory
    ^


    Help Please anyone

  2. #2
    palindrome is offline Member
    Join Date
    Aug 2007
    Posts
    6
    Rep Power
    0

    Default

    Like it says, put the Inventory class in a separate file named "Inventory.java" - public classes must each have their own file.

  3. #3
    jamesr2b is offline Member
    Join Date
    Jul 2007
    Posts
    9
    Rep Power
    0

    Default

    Thank you for your response --I needed to make the file name the same as the public class name and that fixed the problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •