class A { void n(B b) { b.m(this); } } class B { private final int i; public B(int i) { this.i = i; } public int getI() { return i; } void m(A a) { System.out.print("display for me the shape" + a + " " + getI() + "times"); } }