import java.util.Scanner; public class SimpleConsoleCalculator { public void run(){ Scanner scanner = new Scanner(System.in) ; System.out.println("Please enter an Integer number"); int firstNumber = scanner.nextInt(); System.out.println("Please enter another Integer number"); int secondNumber = scanner.nextInt() ; int sum = firstNumber + secondNumber ; System.out.println("Sum of " + firstNumber + " and " + secondNumber + " is " + sum); } public static void main(String[] args){ SimpleConsoleCalculator calculator = new SimpleConsoleCalculator(); calculator.run() ; } }