import java.util.Scanner; /** * Write a description of class Main here. * * @author (your name) * @version (a version number or a date) */ public class Main { public static void main(String[] args) { Scanner reader = new Scanner(System.in); System.out.println("Enter two numbers between 0 and 65535"); System.out.println("Input the first number:"); short n1 = (short) reader.nextInt(); System.out.println("Input the second number:"); short n2 = (short) reader.nextInt(); ShortCalculator calc = new ShortCalculator(n1,n2); calc.printLine("Sum", calc.sum()); calc.printLine("Difference", calc.difference()); calc.printLine("Product", calc.product()); calc.printLine("Quotient", calc.quotient()); calc.printLine("Remainder", calc.remainder()); } }