missing some import class(may be)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waqar100
    New Member
    • Jun 2010
    • 27

    missing some import class(may be)

    Hi,Experts,I am a new one.
    I have made class in java,using netbeans 6.0.1 this getting error if i mouse over on the class name"class shape is public,should be declared in a file named shape.java",

    what i missed?
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    That is because your class is public.
    This is a standard people have been using from early versions of Java.

    Regards
    Dheeraj Joshi

    Comment

    • waqar100
      New Member
      • Jun 2010
      • 27

      #3
      So dheeraj,what is the solution?

      Comment

      • John Locke
        New Member
        • Oct 2010
        • 1

        #4
        check your class.

        1.class name and file name must be the same.

        2.just only one public class in your class.

        Comment

        Working...