123456789101112131415161718192021222324252627282930 |
-
-
-
- public class ShortCalculator {
- public short add(short x,short y){
-
- return (short) (x + y);
-
-
- }
- public short subtract(short x,short y){
-
- return (short) (x - y);
-
-
- }
- public short multiply(short x,short y){
-
- return (short) (x * y);
-
-
- }
- public short divide(short x,short y){
-
- return (short) (x / y);
-
-
- }
- }
|