Algorithm/프로그래머스

[Lv. 1] 문자열을 정수로 바꾸기

녱녱 2023. 4. 27.

class Solution {
    public int solution(String s) {
        int answer = 0;
        answer = Integer.parseInt(s);
        return answer;
    }
}

댓글