1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. public class ShortCalculator {
  2. public Short shortCalculatorSum (Integer firstValue, Integer SecondValue){
  3. int x = firstValue + SecondValue;
  4. short xShort = (short)x;
  5. return xShort;
  6. }
  7. public Short shortCalculatorDifference (Integer firstValue, Integer SecondValue){
  8. int x = firstValue - SecondValue;
  9. short xShort = (short)x;
  10. return xShort;
  11. }
  12. public Short shortCalculatorProduct (Integer firstValue, Integer SecondValue){
  13. int x = firstValue * SecondValue;
  14. short xShort = (short)x;
  15. return xShort;
  16. }
  17. public Short shortCalculatorQuotient (Integer firstValue, Integer SecondValue){
  18. int x = firstValue / SecondValue;
  19. short xShort = (short)x;
  20. return xShort;
  21. }
  22. public Short shortCalculatorRemainder (Integer firstValue, Integer SecondValue){
  23. int x = firstValue % SecondValue;
  24. short xShort = (short)x;
  25. return xShort;
  26. }
  27. }