[프로그래머스] 문자열의 앞의 n글자

Seah Lee·2023년 6월 28일
0

프로그래머스

목록 보기
47/57

class Solution {
    public String solution(String my_string, int n) {
        return my_string.substring(0,n);
    }
}

이게 제일 맞는 답이군 잘했다!

profile
성장하는 개발자

0개의 댓글