-
프로그래머스 - 문자열을 정수로 바꾸기 [자바]Algorithms/- 프로그래머스 2022. 2. 2. 11:22
- 문제 링크 : 문자열을 정수로 바꾸기
정답
class Solution { public int solution(String s) { return Integer.valueOf(s); } }
분석
- String -> Integer
반응형
class Solution {
public int solution(String s) {
return Integer.valueOf(s);
}
}