pricequote.java
来自「java web services how to program」· Java 代码 · 共 51 行
JAVA
51 行
// Fig. 16.21: PriceQuote.java
// J2ME-version of PriceQuote maintains price information for a
// book store.
package jws1casestudy.clients.j2me;
public class PriceQuote {
private String price; // book price
private String isbn; // book ISBN
private int storeID; // store ID
private String storeDescription; // store description
// public default constructor
public PriceQuote() {}
// PriceQuote constructor
public PriceQuote( String bookPrice, String bookIsbn, int ID,
String description )
{
price = bookPrice;
isbn = bookIsbn;
storeID = ID;
storeDescription = description;
}
// obtain book price value
public String getPrice()
{
return price;
}
// obtain book ISBN value
public String getIsbn()
{
return isbn;
}
// obtain store ID value
public int getStoreID()
{
return storeID;
}
// obtain store description value
public String getStoreDescription()
{
return storeDescription;
}
} // end class PriceQuote
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?