The array indices go from 0 to numStudents - 1, not 1 to numStudents

See this http://docs.oracle.com/javase/tutori...ts/arrays.html