문제


풀이
import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// nextLine() : 공백 포함
String str = sc.nextLine();
str = str.replaceAll(" ","");
System.out.print(str);
}
}'코딩테스트' 카테고리의 다른 글
| [구름LEVEL] Bubble sort (0) | 2021.03.12 |
|---|---|
| [구름LEVEL] 삼각형의 넓이 (0) | 2021.03.12 |
| [구름LEVEL] 전기요금 (0) | 2021.03.12 |
| [프로그래머스] 완주하지 못한 선수 (0) | 2020.04.09 |