?? hottub.java
字號(hào):
package headfirst.command.party;public class Hottub { boolean on; int temperature; public Hottub() { } public void on() { on = true; } public void off() { on = false; } public void circulate() { if (on) { System.out.println("Hottub is bubbling!"); } } public void jetsOn() { if (on) { System.out.println("Hottub jets are on"); } } public void jetsOff() { if (on) { System.out.println("Hottub jets are off"); } } public void setTemperature(int temperature) { if (temperature > this.temperature) { System.out.println("Hottub is heating to a steaming " + temperature + " degrees"); } else { System.out.println("Hottub is cooling to " + temperature + " degrees"); } this.temperature = temperature; }}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -