跪求一JSP计算器

来源:百度知道 编辑:UC知道 时间:2024/05/24 04:59:01
要求不 是很多有现成的网页,再附加一份有代码注释截图的说明书
哦 ··用JAVABEAN哟··

SimpleBean.java
public class SimpleBean
...{
String first;
String second;
String operator;
double result;

public void setFirst(String first)
...{
this.first=first;
}

public void setSecond(String second)
...{
this.second=second;
}

public void setOperator(String operator)
...{
this.operator=operator;
}

public String getFirst()
...{
return this.first;
}

public String getSecond()
...{
return this.second;
}

public String getOperator()
...{
return this.operator;
}

public double getResult()
...{
return this.result;
}

public void calculate()
...{
double one=