32. 특정 문자 제거하기

김해준's avatar
Dec 05, 2025
32. 특정 문자 제거하기

사용언어 : Java

문제
notion image
풀이
class Solution { public String solution(String my_string, String letter) { String answer = my_string.replace(letter,""); return answer; } }
notion image
my_string.replace(str1,str2) : my_string 문자열 안에 str1이라는 문자를 str2라는 문자로 변경
 
Share article