📄 addbean.java
字号:
package com.jsf;
public class AddBean {
private double first = 0.0 ;
private double second = 0.0;
private double result = 0.0 ;
/**
* @return the first
*/
public double getFirst() {
return first;
}
/**
* @param first the first to set
*/
public void setFirst(double first) {
this.first = first;
}
/**
* @return the result
*/
public double getResult() {
return result;
}
/**
* @param result the result to set
*/
public void setResult(double result) {
this.result = result;
}
/**
* @return the second
*/
public double getSecond() {
return second;
}
/**
* @param second the second to set
*/
public void setSecond(double second) {
this.second = second;
}
public String add()
{
result = first + second ;
return "success" ;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -