?? item.java
字號:
package good;
public class Item {
//條目的Id
protected String ID;
//條目的描述
protected String desc;
//條目的價格
protected double price;
//此條目中貨物的數量
protected int units;
//條目構造函數
public Item(String _ID) {
ID = _ID;
}
//返回條目的字符串表示形式
public String toString() {
return ID + "\t" + units + " units x " + Util.dollar(price) + "\t";
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -