1234567891011121314151617181920212223 |
-
-
-
- public class ShortCalculator{
- public short shortSum(short x, short y){
- return (short)(x+y);
- }
- public short shortDifference(short x, short y){
- return (short)(x-y);
- }
- public short shortProduct(short x, short y){
- return (short)(x*y);
- }
- public short shortQuotient(short x, short y){
- return (short)(x/y);
- }
- public short shortRemainder(short x, short y){
- return (short)(x%y);
- }
-
- }
-
|