📄 qq.java
字号:
package ss.jsp;import java.math.*;public class QQ { Double first; Double second; String pro; Double result; public void setFirst(Double first) { this.first=first; } public void setSecond(Double second) { this.second=second; } public void setPro(String pro) { this.pro = pro; } public void setResult(Double result) { this.result=result; } public Double getFirst() { return (this.first); } public Double getSecond() { return (this.second); } public String getPro() { return (this.pro); } public Double getResult(){ if(pro.equals("+")) { result=first+second; } else if(pro.equals("-")) { result=first-second; } else if(pro.equals("*")) { result=first*second; } else if(pro.equals("/")) { result=first/second; } return result; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -