``` import java.util.Scanner; public class Main { public static void main(String[] args) { String str = ""; String outputStr = ""; Scanner scan = new Scanner(System.in); str = scan.next(); System.out.println(outputStr); } } ``` 문자열 입력받고 charAt이용해서 역순 출력하고 싶은데 어떻게해야할까요?
# 반복문을 사용해보세요 반복문을 통해 문자열 끝에서부터 앞쪽까지 뒤집으면 될듯합니다.