Bruce Eckel's Thinking in Java | Contents | Prev | Next |
//: PackagedClass.java package c05; class PackagedClass { public PackagedClass() { System.out.println( "Creating a packaged class"); } } ///:~
//: Foreign.java package c05.foreign; import c05.*; public class Foreign { public static void main (String[] args) { PackagedClass pc = new PackagedClass(); } } ///:~