mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
18 lines
240 B
Java
18 lines
240 B
Java
class Test {
|
|
|
|
static class B {
|
|
int getX(){
|
|
return 42;
|
|
}
|
|
}
|
|
|
|
void test(){
|
|
int x = newMethod();
|
|
System.out.println(x);
|
|
}
|
|
|
|
private int newMethod() {
|
|
int x = new B().getX();
|
|
return x;
|
|
}
|
|
} |