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

📄 tv.java

📁 关于常用的几个设计模式的java实现原代码(包括工厂模式
💻 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 + -