/Users/lyon/j4p/src/bookExamples/ch11Packages/fred/FredAndWilma.java

1    package bookExamples.ch11Packages.fred; 
2     
3     
4    class Foo { 
5        public void print() { 
6            System.out.println( 
7                    "Hi Fred"); 
8        } 
9     
10       public static void main( 
11               String args[]) { 
12           Foo f = new Foo(); 
13           bookExamples.ch11Packages.wilma.Foo 
14                   w = new bookExamples.ch11Packages.wilma.Foo(); 
15           f.print(); 
16           w.print(); 
17       } 
18   } 
19    
20