?? warehouse.java
字號:
package com.horstmann.corejava;
import java.util.*;
import javax.jws.*;
/**
* This class is the implementation for a Warehouse web service
* @version 1.0 2007-10-09
* @author Cay Horstmann
*/
@WebService
public class Warehouse
{
public Warehouse()
{
prices = new HashMap<String, Double>();
prices.put("Blackwell Toaster", 24.95);
prices.put("ZapXpress Microwave Oven", 49.95);
}
public double getPrice(@WebParam(name="description") String description)
{
Double price = prices.get(description);
return price == null ? 0 : price;
}
private Map<String, Double> prices;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -