package base; import java.util.*; public class R3 { private int r1; private int r2; private int r3; public void updateR1(int r1) { this.r1 = r1; //r3 = ((((x1+r1)+x2)+r2)+this.r3); } public void updateR2(int r2) { this.r2 = r2; //r3 = ((((x1+r1)+x2)+r2)+this.r3); } public int getR3() { return r3; } }