나의 풀이class Solution { public int solution(String s) { int answer = Integer.parseInt(s); return answer; }}알고리즘이 아닌 함수를 사용했다. 다른 사람의 풀이public class StrToInt { public int getStrToInt(String str) { boolean Sign = true; int result = 0; for (int i = 0; i 부호를 boolean 타입의 변수로 만드셨다.for문을 통해 String 매개변수의 각 인덱스의 값을 결과 변수에 저장하셨다. (ch - '0')는 문자를 숫자로 바꾸는 고전적인..