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

See this http://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html