5 Replies Latest reply on Jan 30, 2013 11:08 AM by EJP

    Stupid question about package

      I read information about "PACKAGE" from website , it mentions package=directory.
      should I create folder corresponding to package before I complie .java and put .java file in the folder ?
      Actually I did as I mention above, and java compiler return me a error message "class name, demoa, are only accepted if annotation processing is explicitly requested". following are source code from demoa.java:

      package samplepackage;
      public class demoa
      public void demoashowmsg()
      System.out.println("Here is demoa!");

      The second issue bother me is,should I put all class which belong to the same package in the same .java file ?
      should I declar "package PackageName" before every class?

      Thanks to those who reply and help in advance.

      Best Regards