코딩테스트 풀이/JAVA
[프로그래머스/Lv.0] 문자열 붙여서 출력하기
무지맘
2023. 4. 24. 19:36
1. Input, Output, Example
- str1과 str2을 이어서 출력하는 코드를 작성
2. Constraint
1) 1 ≤ str1, str2의 길이 ≤ 10
3. Code
1) 첫 코드(2023/04/24)
import java.util.*;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print(sc.next()+sc.next());
}
}
- 개수가 적어서 그런지 BufferedReader를 이용하는 것보다 빨랐다.