Only if you started at index 0.
Also, if you got rid of that ; after the for loop, then it might work better.
for(int i = 0; i < noStudents - 1; i++);
...
Type: Posts; User: javapenguin
Only if you started at index 0.
Also, if you got rid of that ; after the for loop, then it might work better.
for(int i = 0; i < noStudents - 1; i++);
...
Well, with your < noStudents-1, you're skipping the last student.
Also, scoreLow is pretty high, being in the thousands.
Also, you might want to try input.nextLine() for the student name.
...