请问在api文档中类Enum没有values()这个方法,为什么在以下代码中却能调用它呢?
public enum Direction{L,LU,U,RU,R,RD,D,LD,STOP};
Direction[] dirs = Direction.values();
public enum Direction{L,LU,U,RU,R,RD,D,LD,STOP};
Direction[] dirs = Direction.values();
解决方案 »
- 如何使class文件变成可执行文件?
- 谁有Together6.0的注册码 能不能分享一下?
- JAVA 读取 客户端DOM
- 局域网中的Socket不能连接。后续 ps:怎么才能在防火墙开着的情况下通信??
- java byte数组存放无符号数,例如0xFF
- 求教一条语句的意思
- 编译到dataModule11.queryDataSet.setByte("OrdNum", 1);报错!
- 如何用JBUILDER 7.0 建菜单,在线等待。
- 请教如何 在choice中列出某个文件夹下的所有文件
- 请问java client和server间何为状态连接和无状态连接?
- 在java和c#中选择一个,哪个好?
- Runtime.getRuntime().exec()执行错误
java.lang.annotation
Enum ElementTypejava.lang.Object
extended by java.lang.Enum<ElementType>
extended by java.lang.annotation.ElementTypeAll Implemented Interfaces:
Serializable, Comparable<ElementType> 这个里面有:
static ElementType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.
extended by java.lang.Enum <ElementType>
extended by java.lang.annotation.ElementType”和
“All Implemented Interfaces:
Serializable, Comparable <ElementType> ”的信息?