📄 calbean.java
字号:
package cal;
public class CalBean {
//之前的动作是不是+ - * /
private boolean cla=false;
//之前的动作是不是=
private boolean clafin=false;
//之前的动作是不是.
private boolean point=false;
//用于保存 被加/减/乘/除 的数
private String temp1="000";
private String temp2="000";
//用于识别之前输入的是+-*/中的哪个
private boolean haspoint=false;
private int oper=0;
public boolean isCla() {
return cla;
}
public void setCla(boolean cla) {
this.cla = cla;
}
public boolean isClafin() {
return clafin;
}
public void setClafin(boolean clafin) {
this.clafin = clafin;
}
public boolean isHaspoint() {
return haspoint;
}
public void setHaspoint(boolean haspoint) {
this.haspoint = haspoint;
}
public int getOper() {
return oper;
}
public void setOper(int oper) {
this.oper = oper;
}
public boolean isPoint() {
return point;
}
public void setPoint(boolean point) {
this.point = point;
}
public String getTemp1() {
return temp1;
}
public void setTemp1(String temp1) {
this.temp1 = temp1;
}
public String getTemp2() {
return temp2;
}
public void setTemp2(String temp2) {
this.temp2 = temp2;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -