/** * Write a description of class Calculator here. * * @author (your name) * @version (a version number or a date) */ public class Calculator { public void run() { System.out.println("Enter a number,n, to get sum of 1 to n"); Console console = new Console(); SumOfInput sumOfInput = new SumOfInput(); int aSumOfInput = sumOfInput.sumOfInput(console.getUserInput()); console.printSumOfInput(aSumOfInput); } }