stockoff.java
来自「JBoss Drools规则引擎」· Java 代码 · 共 52 行
JAVA
52 行
package test;
public class StockOff {
//定义两个常量
public final static String Yes="Yes";
public final static String No="No";
private String stockName = null;
private int stockPrice = 0;
private int stockQuantity = 0;
private String commendPurchase = null;
public String getCommendPurchase() {
return commendPurchase;
}
public void setCommendPurchase(String commendPurchase) {
this.commendPurchase = commendPurchase;
}
public String getStockName() {
return stockName;
}
public void setStockName(String stockName) {
this.stockName = stockName;
}
public int getStockPrice() {
return stockPrice;
}
public void setStockPrice(int stockPrice) {
this.stockPrice = stockPrice;
}
public int getStockQuantity() {
return stockQuantity;
}
public void setStockQuantity(int stockQuantity) {
this.stockQuantity = stockQuantity;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?