CS351 Spring 2004 Lab 4

Packages

Packages

Purpose
Naming
Directories and Classpath
Putting a file into a package
Using code in other packages
Package permissions
Exercise

Create two classes, A and B, in packages alpha and beta respectively (note case).
Create a third class outside both of these packages, Main.
In each class write a static method void hello() that prints message identifing the class its in.
In Main.main() call all three methods, using an import statement for class A, and a fully-qualified-classname for B.

Your hand-in is due by the end of class.