📄 cartitem.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 + -