특정한 문자를 대문자로 바꾸기

gotcha!!·2024년 1월 8일
0

코딩테스트

목록 보기
29/36

문제 링크

class Solution {
    public String solution(String my_string, String alp) {
        String answer = my_string.replace(alp, alp.toUpperCase());
        return answer;
    }
}
profile
ha lee :)

0개의 댓글