Steps to create a Java package:

  1. Come up with a package name
  2. Pick up a base directory
  3. Make a subdirectory from the base directory that matches your package name.
  4. Place your source files into the package subdirectory.
  5. Use the package statement in each source file.
  6. Compile your source files from the base directory.
  7. Run your program from the base directory.