cartitem.java

来自「jsp+servlet网上购物,是一个实现mvc的网站」· Java 代码 · 共 52 行

JAVA
52
字号
package com.ebook.Entity;/** * * @author 隆科 */public class cartItem { private int bookid; private String bookname; private int quantity; private String beforePrice; private String nowPrice; private double totalPrice; public String getBeforePrice() {	return beforePrice;}public void setBeforePrice(String beforePrice) {	this.beforePrice = beforePrice;}public int getBookid() {	return bookid;}public void setBookid(int bookid) {	this.bookid = bookid;}public String getBookname() {	return bookname;}public void setBookname(String bookname) {	this.bookname = bookname;}public String getNowPrice() {	return nowPrice;}public void setNowPrice(String nowPrice) {	this.nowPrice = nowPrice;}public int getQuantity() {	return quantity;}public void setQuantity(int quantity) {	this.quantity = quantity;}public double getTotalPrice() {	return this.quantity*Integer.parseInt(this.nowPrice);}public void setTotalPrice(double totalPrice) {	this.totalPrice = totalPrice;}}

⌨️ 快捷键说明

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