⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pricequote.java

📁 java web services how to program
💻 JAVA
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -