public class A{
private B b;
public B getB() {
return b;
}
public void setB(B b) {
this.b = b;
}
static class B{
private C c;
public C getC() {
return c;
}
public void setC(C c) {
this.c = c;
}
}
static class C {
private Integer a;
public Integer getA() {
return a;
}
public void setA(Integer a) {
this.a = a;
}
}
}
如何获取C类的变量a?