?? company.java
字號:
package company;
import company.animal.Animal;
import company.animal.feet.*;
import company.animal.nofeet.*;
import company.equipment.*;
import company.Farm;
public class Company {
private String name;
private String type;
public Company (String name, String type) {
this.name = name;
this.type = type;
}
public void setName (String name) {
this.name = name;
}
public void setType (String type) {
this.type = type;
}
public String getName() {
return this.name;
}
public String getType() {
return this.type;
}
public String getInfo() {
String info = "Name: "+this.name+"\n"+
"Type: "+this.type;
return info;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -