应为静态方法内yi引用内部类需要使用 new private class.A(),若是非静态方法则在本类中不需要声明privateclass
javac privateclass.javajava privateclass
另外类名首字母一般大写,你应该有用eclipse打开java而不是vs