import java.util.Scanner; public class MtdDrill { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("정수를 입력하세요 : "); int num = scanner.nextInt(); String txt = input(num); scanner.close(); System.out.println("입력하신 정수는 " + txt + "입니다."); System.out.println(txt.getClass().getName()); } public static String input(int num) { String txt = "" + num; return txt; } }