1546번 - 평균
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at Main.main(Main.java:17)
이런 에러가 뜨는데 이게 왜 뜨는지 모르겠어요. 코드에서 어디를 수정해야 할까요?
말 그대로 입니다.
배열 인덱스 범위를 넘었단 뜻이에요.17번 줄이라고 하네요.
댓글을 작성하려면 로그인해야 합니다.
qkrdudtjzzz 1년 전
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at Main.main(Main.java:17)
이런 에러가 뜨는데 이게 왜 뜨는지 모르겠어요. 코드에서 어디를 수정해야 할까요?