java代码错误(二)
-
he nested type Shape cannot hide an enclosing type
内部名称和外部名称不能相同
改变外部名称或内部名称,右键->refactor->rename
2.No enclosing instance of type is accessible. Must qualify the allocation with
给内部类加个static,因为main方法是静态的。
内部名称和外部名称不能相同
改变外部名称或内部名称,右键->refactor->rename
给内部类加个static,因为main方法是静态的。