mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 07:50:55 +07:00
24 lines
301 B
Plaintext
24 lines
301 B
Plaintext
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");
|
|
}
|
|
} |