mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
19 lines
310 B
Java
19 lines
310 B
Java
class A {
|
|
public void doTest() {
|
|
int i = 2;
|
|
Object b = new Inner(i*2);
|
|
}
|
|
|
|
private class <caret>Inner {
|
|
private int i;
|
|
|
|
public Inner(int arg) {
|
|
i=arg;
|
|
}
|
|
|
|
public String toString() {
|
|
i++;
|
|
return "A";
|
|
}
|
|
}
|
|
} |