Getting odd exception

Cannot check work because of Exception in thread "main"
java.lang.ArrayIndexOutOfBoundsException: 8
	at com.bloc.loops.Loops.main(Loops.java:38)