CS 342 - 4/21/16 Java Packages Reason to to avoid name conflicts between code segments produced by different groups java relies on the ClassPath system variable to help result resolve package use. package statement package ; // example from http://www.tutorialspoint.com/java/java_packages.htm package animal; //the rest of the file code The above line indicates the '.class' files get stored in the animal subdirectory. To use these class files, the following import statement is to given access to the files import animal;