Program will not print anything, and only error is
Exception in thread "main" java.util.InputMismatchException
at java.util.Scanner.throwFor(Scanner.java:909)
at java.util.Scanner.next(Scanner.java:1530)
at java.util.Scanner.nextInt(Scanner.java:2160)
at java.util.Scanner.nextInt(Scanner.java:2119)
at StudentGrades.getAverage(StudentGrades.java:37)
at StudentGrades.main(StudentGrades.java:109)
If you follow the link the forum software has put in for java.util.InputMismatchException, it will take you to the documentation. Which says "Thrown by a Scanner to indicate that the token retrieved does not match the pattern for the expected type, or that the token is out of range for the expected type."
You're getting it thrown on line 37, which is testScore[num] = inFile.nextInt(); This means that the next thing that's being read by the Scanner isn't an integer. So, what is it? It's all to do with what's in your input file. What is it trying to read at this point?
Think of how stupid the average person is. And how half of them are stupider than that. But who reads this tiny ad?