[프로그래머스]접미사인지 확인하기

박예림·2023년 5월 25일
0

코테

목록 보기
103/132

class Solution {
    public int solution(String my_string, String is_suffix) {
        return my_string.endsWith(is_suffix)? 1 : 0;
    }
}
profile
응애 나 아기개발자

0개의 댓글