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

📄 cartitem.java

📁 A JSP Based EShop for searching books and placing Orders
💻 JAVA
字号:
package eshop.beans;public class CartItem {  private String author;  private String title;  private double price;  private String bookID;  private String quantity;	public CartItem(Book book, int quantity) {		this.bookID = book.getId();		this.title = book.getTitle();		this.author = book.getAuthor();		this.price = book.getPrice();		this.quantity = new Integer(quantity).toString();	  }	public String getAuthor() { return author; }	public void setAuthor(String author) { this.author = author; }	public String getTitle() { return title; }	public void setTitle(String title) { this.title = title; }	public double getPrice() { return price; }	public void setPrice(double price) { this.price = price; }	public String getBookID() { return bookID; }	public void setBookId(String bookID) { this.bookID = bookID; }	public String getQuantity() { return quantity; }	public void setQuantity(String quantity) { this.quantity = quantity; }  }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -