go top

网络释义

  enumeration COnStant

5、枚举常量(enumeration constant):以关键字enum进行声明,对于没有初始化的枚举常量,其值为前一常量值加1,依次递增;可以给任意常量赋值;

基于40个网页-相关网页

  Enum Constant

...t"); private static String ident(String s) { return s; } } 在5.0版本中引入的枚举常量(enum constants),虽然有这样一个名字,但是它们并不是常量变量。

基于34个网页-相关网页

短语

枚举常量语法错 Enumeration constant syntax error

枚举常量语法错误 Enumeration constant syntax error

双语例句

  • 请考虑为常用标志组合创建一个枚举常量。

    Consider providing named constants for commonly used combinations of flags.

    youdao

  • 添加枚举常量red,并将其值设置为10。

    Add an enumeration literal of RED, and set its value to 10.

    youdao

  • 类似地,添加枚举常量 BLUE 和 GREEN,值分别为 20 和 30。

    Similarly add enumeration literals BLUE and GREEN, with values 20 and 30, respectively.

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定