I am a novice Java student and am trying to complete a program that uses the scanner to input 5 students\' names, and then a loop within to get 3 grades for each student. I am
Your problem is in line 20.
grades[studentNumber][courseNumber] = input.nextInt();
that means that in the input, it is expecting an int, but it founds another thing, like a double, a char array or anything else
There is also another problem, you declare your grades as:
grades = new int[5][3];
the last number means that you can access to grades from [0..4][0..2]
but your if statement:
if (courseNumber < 5)
means that you will access to a number higher than '2' in
grades[studentNumber][courseNumber] = input.nextInt();
which will raise an OutOfBoundsException