package javax.foo; public class B { public void foo() { System.out.println("(B) method running"); } }