📄 tv.java
字号:
package headfirst.command.remote;public class TV { String location; int channel; public TV(String location) { this.location = location; } public void on() { System.out.println("TV is on"); } public void off() { System.out.println("TV is off"); } public void setInputChannel() { this.channel = 3; System.out.println("Channel is set for VCR"); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -