Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 3
at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:47)
at java.base/java.lang.String.charAt(String.java:702)
at Main.reverse(Main.java:20)
at Main.main(Main.java:12)
이런 경고문이 빨간 글씨로 뜨는데 어떤걸 잘못한걸까요??