public class ShortCalculator { public short sum(short a, short b){ return (short)(a + b); } public short difference(short a, short b){ return (short)(a - b); } public short product(short a, short b){ return (short)(a * b); } public short quotient(short a, short b){ return (short)(a / b); } public short remainder(short a, short b){ return (short)(a % b); } }