왜 index out of range 이죠..

yoo0125 Reply 6 years 30 weeks ago
런타임 에러 떠서 확인해보니 index out of range 뜨네요 charAt 0부터 시작하는 거 아닌가요...?
keacotle Reply 6 years 30 weeks ago
에러 메시지 중에 String index out of range: -1가 있습니다. 잘못된 범위를 접근하려고 하는 것이니 코드를 다시 살펴보세요.