[프로그래머스/Java] Lv.0 문자열로 변환

febCho·2024년 3월 19일
0

코딩테스트

목록 보기
108/253
post-thumbnail

문제

정수 n이 주어질 때, n을 문자열로 변환하여 return하도록 solution 함수를 완성해주세요.

- 제한사항

  • 1 ≤ n ≤ 10000

풀이

class Solution {
    public String solution(int n) {
        return String.valueOf(n);
    }
}

결과

profile
Done is better than perfect.

0개의 댓글