shoppingcartitem.java
来自「一个经典购物车(shoppingcart)实例代码」· Java 代码 · 共 35 行
JAVA
35 行
package com.jpioneer.application.shoppingcart.domain;
public class ShoppingCartItem {
private String id;//唯一表示一条选购商品数据
private String name;//商品名称
private double price;//商品价格
private double quantity;//商品数量
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
public double getQuantity() {
return quantity;
}
public void setQuantity(double quantity) {
this.quantity = quantity;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?