why enum could not be resolved in JAVA?

前端 未结 4 1427
忘掉有多难
忘掉有多难 2020-12-21 16:05

I was using J2EE Eclipse Indigo, and I have three class declare like this:

public interface ClassA {
   public static enum TYPE { TYPE1, TYPE2 };
}

public i         


        
4条回答
  •  感动是毒
    2020-12-21 16:45

    You mistyped inteface for interface.

    Maybe your compiler is too old, so that it doesn't know that enum is a keyword.

提交回复
热议问题