最佳答案
我要做的是:
public class History {
public class State {
public enum StateType {
Eclipse 在 StateType: The member enum StateType must be defined inside a static member type上给出了这个编译错误。
当我使 State类成为静态类时,错误就会消失。我可以使 State成为静态的,但是我不明白为什么不能在内部类中声明 enum。