⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stoplightcolor.java

📁 java 完全探索的随书源码
💻 JAVA
字号:
public class StopLightColor {  // declare static instances to represent all allowed states  public static final StopLightColor GREEN = new StopLightColor("Green");  public static final StopLightColor YELLOW = new StopLightColor("Yellow");  public static final StopLightColor RED = new StopLightColor("Red");  private String color;  // constructor is private to prevent any extraneous values  private StopLightColor(String colorName) {    color = colorName;  }  public String toString() {    return color;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -