lotcolors.java
来自「大富翁游戏monopoli」· Java 代码 · 共 24 行
JAVA
24 行
enum LotColors { yellow("y"), cyan("c"), purple("p"), red("r"), violet("v"), orange("o"), brown("b"), green("g"); private String _code; LotColors(String c) {_code = c;} public String toString() {return _code;} public static LotColors toColor(char c) { switch (c) { case 'y': return LotColors.yellow; case 'c': return LotColors.cyan; case 'p': return LotColors.purple; case 'r': return LotColors.red; case 'v': return LotColors.violet; case 'o': return LotColors.orange; case 'b': return LotColors.brown; case 'g': return LotColors.green; default: return null; } }};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?