[JAVA 문제 풀이] 96. 문자열 붙여서 출력하기

프로그래머스 (181946)
Stupefyee's avatar
Feb 20, 2025
[JAVA 문제 풀이] 96. 문자열 붙여서 출력하기
notion image
 

내가 작성한 코드

import java.util.*; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); String b = sc.next(); System.out.println(a + b); // System.out.printf("%s%s", a, b); sc.close(); } }
 
Share article

stupefyee