System.out.print(" **Grades of Students**\nPlease Enter the Name of Your Course(ex: MATH-110): ");
String gradeCourse = input.next();
System.out.print("Please Enter the No. of Student in "+gradeCourse+": ");
only first statement is within if, rest of the statement are outside
hence else is without if !
use curly brackets in if
else if (...)