class Solution { public String solution(String my_string) { String answer = ""; StringBuffer buffer = new StringBuffer(my_string); answer = buffer.reverse().toString(); return answer; } }
StringBuffer의 reverse() 메서드