I have the following piece of code:
public class InnerClassStuff {
public class A{
public class AA{}
}
}
my question is how can I instantitae an AA object?
I've tried the following but it won't compile:
public static void main(String[] args){
InnerClassStuff object = new InnerClassStuff();
A a = object.new A();
AA aa = object.a.new AA(); //error
}