원인은 인덱스가 배열의 크기보다 크거나 음수가 나온다면 예외를 발생시킨다..
array할 때 항상 사이즈 생각하면서 코딩하기..!
참고)
[JAVA]자바 프로그래밍에서 'Index 0 out of bounds for length 0' 오류 이해와 해결법
안녕하세요, 프로그래밍 세계에 오신 것을 환영합니다! 오늘은 자바 프로그래밍에서 자주 마주치는 오류 중 하나인 ‘Index 0 out of bounds for length 0’에 대해 알아보겠습니다. 이 포스트를 통해 해
wyatti.tistory.com
'error.problem' 카테고리의 다른 글
[오라클 오류] ORA-01017 invalid username/password; logon denied (0) | 2023.10.24 |
---|---|
[오라클 오류] ORA-28001 change the password or contact the dba (0) | 2023.10.24 |
자바 오류 not a statement~ (0) | 2023.09.08 |
자바 이클립스 오류(Launch Error) Selection does not contain a main type 해 (0) | 2023.08.23 |
자바 이클립스 오류(Unable To Launch) The selection cannot be launches, and there are no recent launches. 해결 (0) | 2023.08.23 |