📄 lotcolors.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -