mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
21 lines
301 B
Plaintext
21 lines
301 B
Plaintext
class Test{
|
|
void foo(int i){
|
|
new InnerClass(i).invoke();
|
|
}
|
|
|
|
void bar(Test t){
|
|
t.foo(1);
|
|
}
|
|
|
|
private class InnerClass {
|
|
private int i;
|
|
|
|
public InnerClass(int i) {
|
|
this.i = i;
|
|
}
|
|
|
|
public void invoke() {
|
|
i++;
|
|
}
|
|
}
|
|
} |