this statement else if (course != 1 !=2) made a compilation error, that is not a boolean expression and an invalid syntax in java.
if you want to compare a course to 1 or 2, you can use logical...