[프로그래머스]외계행성의 나이

박예림·2023년 3월 27일
0

코테

목록 보기
55/132

class Solution {
    public String solution(int age) {
        String temp = age+"";
        String[] tem = temp.split("");
        String answer = "";
        for (int i=0; i<tem.length; i++) {
            answer += (char)(Integer.parseInt(tem[i])+97);
        }

        return answer;
    }
}

아스키코드 소문자

profile
응애 나 아기개발자

0개의 댓글