Scanner scanner = new Scanner(System.in);
String value = scanner.nextLine();
System.out.println(value);
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("이름을 입력하세요");
String message = scanner.nextLine();
System.out.printf("내 이름은 %s이다.\n", message);
System.out.println("나이를 입력하세요");
int num = scanner.nextInt();
System.out.printf("내 나이는 %d살이다.\n", num);
}
}
.nextLine()
.nextInt()
.nextShort()
.nextByte()
.nextLong()
.nextFloat()
.nextDouble()
.nextBoolean()