사용자로부터 입력되는 정수, 실수, 문자열을 처리하는 클래스
import java.util.Scanner;
Scanner sc = new Scanner(System.in);
Scanner sc = new Scanner(System.in);
// sc.next() : 다음 입력되는 한 단어를 얻어(띄어쓰기 나오기 전까지~)
// sc.nextInt() : 다음 입력되는 정수를 얻어옴
// sc.nextDouble() : 다음 입력되는 실수를 얻어옴
System.out.print("이름 : ");
String inputName = sc.next();
System.out.print("나이 : ");
int inputAge = sc.nextInt();
System.out.print("키 : ");
double inputHeight = sc.nextDouble();
// 홍길동님은 25세, 키 174.5cm 입니다.
System.out.printf("%s님은 %d세, 키 %.1fcm 입니다.", inputName, inputAge, inputHeight );
:: 출력값