https://school.programmers.co.kr/learn/courses/30/lessons/120826
class Solution {
public String solution(String my_string, String letter) {
String answer = "";
answer = my_string.replace(letter, ""); //letter์ ๋ค์ด์๋ ๋ฌธ์๋ฅผ ""๋ก ์นํํ์ฌ ์ ๊ฑฐ
return answer;
}
}
๋ฌธ์์ด์์ ํน์ ๋ฌธ์๋ฅผ ์ ๊ฑฐํ๊ธฐ ์ํด์๋ .replace(์ง์ฐ๊ณ ์ถ์ ๋ฌธ์, "") ๋ฅผ ํด์ฃผ๋ฉด ๋๋ค!