How do I forward ads in Java?
I have two classes, each of which must call a method in the other, and they are both in different namespaces. For instance...
package one;
class A {
public void foo() {
B b = new B();
b.bah();
}
}
and
package two;
class B {
public void bah() {
A a = new A();
a.foo();
}
}
UPDATE
In Eclipse, when this code is encountered, a compile-time error "The loop was detected in the build path ..." will be displayed.
Ben l source
share