B
Bruce Sam
/* ************************* */
public class A {
public void g() {
class B {
public void f() {
System.out.println("f()");
}
}
}
public static void main(String[] args) {
}
}
/* ************************** */
Above program is an incomplete code.The code I want to add is that
access the meothod of f();But I don't know how to access the method f()
in such a inner class?
public class A {
public void g() {
class B {
public void f() {
System.out.println("f()");
}
}
}
public static void main(String[] args) {
}
}
/* ************************** */
Above program is an incomplete code.The code I want to add is that
access the meothod of f();But I don't know how to access the method f()
in such a inner class?