Mega Code Archive

 
Categories / Java Book / 002 Class
 

0155 Create a hierarchy of packages

To create a hierarchy of packages, separate each package name from the one above it by use of a period. The general form of a multileveled package statement: package pkg1[.pkg2[.pkg3]]; A package hierarchy must be reflected in the file system of your Java development system