문자열 str
이 주어질 때, str
을 출력하는 코드를 작성해 보세요.
str
의 길이 ≤ 1,000,000str
에는 공백이 없으며, 첫째 줄에 한 줄로만 주어집니다.입력 #1
HelloWorld!
출력 #1
HelloWorld!
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String a = sc.next();
System.out.println(a);
}
}