value = val;   double fStrain = getStrain(); s1.setStrain(fStrain); int remainder = val - s1.getValue(); s2.setValue(remainder);
    public void setValue(int val)    {      if (val > getMaximumValue())        {          value = getMaximumValue();        }      else if (val < getMinimumValue())        {          value = getMinimumValue();        }      else        {          value = val;        }    }