[프로그래머스]배열 원소의 길이

박예림·2023년 2월 28일
0

코테

목록 보기
18/132

class Solution {
    public int[] solution(String[] strlist) {
        int[] answer = new int[strlist.length];
        for (int i =0; i <strlist.length; i++){
            answer[i]=strlist[i].length();
        }
        
        return answer;
    }
}
profile
응애 나 아기개발자

0개의 댓글