D
Dural
My experimentation seems to say yes, but I can't seem to find it
explicitly stated so anywhere.
explicitly stated so anywhere.
Dural said:My experimentation seems to say yes, but I can't seem to find it
explicitly stated so anywhere.
Dural said:Actually this works too, and is simpler:
public class Ex8 {
public class Ex8Inner {
private int x = 5;
}
Ex8.Ex8Inner ei = new Ex8Inner();
public static void main(String[] args) {
Ex8 a = new Ex8();
a.ei.x = 8;
System.out.print(a.ei.x);
}
}
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.