If your classes are not in a named package, just put them in the same directory that has the class named in the javac command or a directory named in your classpath.
If packages are involved, the first identifier in the package name should be a subdirectory either in the same directory as the file named in your javac command or a directory in your classpath. If there are other identifiers in the package name, create subdirectories downward from the first subdirectory. Store your class or interface source file in the lowest of these subdirectories.
You can refer to members of packages either by putting the full package name in front of the class or interface name every time you use it or with an import statement. References within the same package can just use the simple name.
You can look up the format and placement of package and import statements.
[ February 14, 2005: Message edited by: Mike Gershman ] [ February 14, 2005: Message edited by: Mike Gershman ]