📄 stockoff.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -