内部类与.new

public class DotNew
{
public class Inner
{
public Inner()
{
System.out.println("Inner Creating!!");
}
}
public static void main(String args[])
{
DotNew d = new DotNew();
DotNew.Inner d1 = d.new Inner();
}
}


【内部类与.new】这个例子重点在DotNew Inner d1 = d.new Inner()

    推荐阅读