?? television.java
字號:
//電視機
public class Television{
private double width = 0;//
private double height = 0;
private String factory;//
private boolean isOpen = false;//
public Television(double width,double height,
String factory,boolean isOpen){
this.width = width;
this.height = height;
this.factory = factory;
this.isOpen = isOpen;
}
public boolean openTV(){
if(isOpen == false){
isOpen = true;
}
return isOpen;
}
public static void main(String args[]){
Television t = new Television(100.0,50.0,"Haier",false);
t.openTV();
System.out.println(t.isOpen);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -