[algorithm] 대문자로 바꾸기

인철·2024년 2월 26일
0

algorithm

목록 보기
74/91
post-thumbnail

알파벳으로 이루어진 문자열 myString이 주어집니다. 모든 알파벳을 대문자로 변환하여 return 하는 solution 함수를 완성해 주세요.

class Solution {
    public String solution(String myString) {
        String answer = "";
        
        answer = myString.toUpperCase();
        return answer;
    }
}
// 대문자로 바꾸기 : toUpperCase();
// 소문자로 바꾸기 : toLowerCase();
profile
같은글이있어도양해부탁드려요(킁킁)

0개의 댓글