실행시키면 


Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 5 out of bounds for length 5

at Exercise5_4.main(Exercise5_4.java:17)


라고 뜨는데 17번줄에 길이를 초과했다는말같아서 arr.length랑 arr[i].length에 1씩 빼준다음에 실행해도 계속 저렇게 에러가 떠