예를 들면

String st = "123456789";

int answer = 0;

st.charAt(3) > '2' ? answer+=1 : answer-=1;


이렇게는 쓸 수 없는거?


st.charAt(3) 부분에 변수를 따로 넣어야해?