import java.util.Scanner; public class ShortCalculator { public void shortValue(short num1, short num2){ Scanner scanner = new Scanner(System.in); System.out.println("Enter first number:"); num1 = scanner.nextShort(); System.out.println("Enter second number:"); num2 = scanner.nextShort(); System.out.println(num1 + (float)num2); System.out.println(num1 - (float)num2); System.out.println(num1 * (float)num2); System.out.println(num1 / (float)num2); } }