This preview shows page 1. Sign up to view the full content.
Unformatted text preview: which we put in the next directory above that of the package java. We put the import statement as the first statement in your PetRecordDemo.java program: import java.*; You dont need to compile the PetRecord.java program first. When you compile your PetRecordDemo.java program which uses the java package, the compiler will look for a sub-directory named java in the current directory holding PetRecordDemo.java program. When the compiler finds the file and it has not been compiled, it will do the compilation for you automatically. By convention package names begin with a lower case letter, while classes begin with an upper case letter....
View Full Document
- Spring '08