class Solution { public String solution(String s) { String answer = ""; int length = s.length(); int halfLength = length/2; if (length % 2 == 1) { answer = s.substring(halfLength, halfLength+1); //substring(int beginindex) 시작위치에서 끝까지 } else { //substring(int beginindex, int endindex) 시작위치에서 끝위치(시작위치포함+n글자 출력) answer = s.substring(halfLength-1, halfLength+1); //시작위치에서 2글자 출력이므로 (halflength-1)+2 }..