?? giftshop.java
字號:
import com.prefect.ecommerce.*;
public class GiftShop {
public static void main(String[] arguments) {
Storefront store = new Storefront();
store.addItem("C01", "MUG", "9.99", "150");
store.addItem("C02", "LG MUG", "12.99", "82");
store.addItem("C03", "MOUSEPAD", "10.49", "800");
store.addItem("D01", "T SHIRT", "16.99", "90");
store.sort();
for (int i = 0; i < store.getSize(); i++) {
Item show = (Item)store.getItem(i);
System.out.println("\nItem ID: " + show.getId() +
"\nName: " + show.getName() +
"\nRetail Price: $" + show.getRetail() +
"\nPrice: $" + show.getPrice() +
"\nQuantity: " + show.getQuantity());
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -