Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CalcService {
- // declare input user input vars and operator
- private double a;
- private double b;
- private String operator;
- // getters
- public double getA() {
- return this.a;
- }
- public double getB() {
- return this.b;
- }
- public String getOperator() {
- return this.operator;
- }
- // setters
- public void setA(double a) {
- this.a = a;
- }
- public void setB(double b) {
- this.b = b;
- }
- public void setOperator(String operator) {
- this.operator = operator;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement