package study_2022_1206; import java.util.Scanner; public class App { public int additionNums(int numA, int numB) { int sum = numA + numB; return sum; } public String displayContents(int sum, String word) { return String.valueOf(sum) + " " + word; } public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int numA = scanner.nextInt(); int numB = scanner.nextInt(); String word = scanner.nextLine(); scanner.close(); System.out.println(new App().displayContents(new App().additionNums(numA, numB), word)); } }