프로그래머스 - 접두사인지 확인하기

MinJun·2023년 4월 28일
0

문제링크 - 프로그래머스 - 접두사인지 확인하기

class Solution {
    public int solution(String my_string, String is_prefix) {
        int answer = 0;
        if(my_string.startsWith(is_prefix)){
            answer = 1;
        }
        return answer;
    }
}
profile
첫 걸음

0개의 댓글