Files
2021-03-03 11:38:41 +00:00

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;
}
}