?? qq.java
字號(hào):
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; }}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -